good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: How to get the process Idby pme (Monsignor) |
on Jul 29, 2015 at 11:06 UTC ( [id://1136734]=note: print w/replies, xml ) | Need Help?? |
If yours is not the only running tcpdump 'ps aux | grep tcpdump' returns more than one line. Luckily shell has $! variable that holds the last child PID. See bash for the details.
In Section
Seekers of Perl Wisdom
|
|