read core from pipe and write it into a core file which has custom name