Skip to content

Instantly share code, notes, and snippets.

@mdpuma
Last active April 18, 2016 15:45
Show Gist options
  • Save mdpuma/4edfc877145b19d2aeb7 to your computer and use it in GitHub Desktop.
Save mdpuma/4edfc877145b19d2aeb7 to your computer and use it in GitHub Desktop.
strace process by user
#!/bin/bash
USER=nobody
strace $(pgrep -u $USER | xargs -I{} echo -n "-p {} ") 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment