hackbyte

psg

Sep 9th, 2021 (edited)
926
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. psg ()
  2. {
  3.  
  4.     # based on something i learned from A. Spohr way back in the mid 1990ies.
  5.     # Recreated and refined to a useful oneliner in IRCNet in #linux.de
  6.     # in the first decade of 2k. ;)
  7.     /bin/ps xau | /bin/grep COMMAND\\\|$1 | /bin/grep -v grep
  8.  
  9.     ## usage `psg $processname` ;)
  10. }
  11.  
RAW Paste Data