ST. Patrick's Athletic are through to the last eight after a penalty shootout victory away to Cork City.