system("sort somefile.txt >somefile2.txt 2>error.txt") or die;