[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding the PID of a process spawned by popen.

> kill `ps -ax|grep wget | grep -v grep| awk 'print $1}'`
> would DEFINITLY do the job. 

Here is something a little more elagant...it was sent to me from Alexander  
Yurchenko <grange_(_at_)_rt_(_dot_)_mipt_(_dot_)_ru>:

"ps axc | awk '/wget/ {print $1}'"

Little bit cleaner than my suggestion.


Visit your host, monkey.org