Just another Perl shrine | |
PerlMonks |
Re: How to get the process Idby Myrddin Wyllt (Hermit) |
on Jul 29, 2015 at 13:11 UTC ( [id://1136743]=note: print w/replies, xml ) | Need Help?? |
Instead of ps, you could use pgrep -n -u vasuperl tcpdump You need to do less munging of the return value as it just gives you the process id of the last command (-n) containing the string 'tcpdump' executed by the user (-u) 'vasuperl'.
In Section
Seekers of Perl Wisdom
|
|