Skip to content

Instantly share code, notes, and snippets.

@sennajox
Created October 22, 2013 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sennajox/7105217 to your computer and use it in GitHub Desktop.
Save sennajox/7105217 to your computer and use it in GitHub Desktop.
A simple script to strace a group of processes
#!/bin/bash
if [ $# -lt 1 ];then
echo "usage:$0 process_name"
exit 1
fi
process_name="$1"
function straceall()
{
strace $(pidof "${1}" | sed 's/\([0-9]*\)/-p \1/g')
}
straceall $process_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment