user=`pwd | cut -d \/ -f 3`; x=1; while [ $x = 1 ]; do process=`pgrep -n -u $user php`; if [ $process ]; then x=0; fi;  done; strace -vvttf -s 256  -p $process 2>&1| tee strace 

General examples:
Some more real-world:

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.