stty tostop perl mytest.pl > result.txt & tail -n4 result.txt