$ strace -f ./686679.pl or, to redirect the output to a file: $ strace -f -o strace.out ./686679.pl or, to trace only specific system calls, like execve, $ strace -f -e execve ./686679.pl or the set of 'file' system calls, etc. $ strace -f -e file ./686679.pl