exec "strace -p$$ >/whatever/logfile";