Skip to content

Instantly share code, notes, and snippets.

@jemyzhang
Last active September 19, 2019 01:36
Show Gist options
  • Save jemyzhang/102bee0cad0e0ac47477cb7d5e55ff46 to your computer and use it in GitHub Desktop.
Save jemyzhang/102bee0cad0e0ac47477cb7d5e55ff46 to your computer and use it in GitHub Desktop.
[Get Argument List From cmdline of proc info] Get the argetment list from the cmdline of proc #proc
pid=$(pidof $PROCNAME)
cat /proc/$pid/cmdline | xargs -0 echo
who | awk '{print $1}' | sort | uniq | while read p; do echo "$p: $(eval "ps aux | awk '{print $1}' | grep $p | wc -l")" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment