printf "$dir1 $dir2 $(tail -n -1 pes.log) " >> ../opt_done.txt
strace -p1234 -s9999 -e write where 1234 is the process ID