[PLUG] Extracting the pid - Resolved

Jeme A Brelin jeme at brelin.net
Tue May 21 23:14:38 UTC 2002


On Tue, 21 May 2002, Richard Steffens wrote:
> > pidof mpg123
> 
> As does this. This one seems the cleanest, too. As with many things in
> Linux, there is often more than one way to get something done.

Either pidof or pgrep will do what you'd like, but the CLEANEST way to
handle this sort of thing is to capture the pid when you exec mpg123 in
the first place and store it for later use.

J.
-- 
   -----------------
     Jeme A Brelin
    jeme at brelin.net
   -----------------
 [cc] counter-copyright
 http://www.openlaw.org





More information about the PLUG mailing list