[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding the PID of a process spawned by popen.
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Finding the PID of a process spawned by popen.
- From: Rick Pettit <rpettit_(_at_)_vailsys_(_dot_)_com>
- Date: Thu, 6 Dec 2001 10:30:27 -0600 (CST)
> 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.
Rick
Visit your host, monkey.org