On Mon, 1 Dec 2003, AthlonRob wrote:

> Anyway, I recently learned of pgrep.  It's an excellent way to figure
> out if something is running or not.  pgrep outputs the PID of anything
> matching the regex you give it.
> 
> [EMAIL PROTECTED]:~$ pgrep distccd
> 4388
> 10995
> 11006
> 11260
> 11292
> 11334
> 11348
> 11368
> 11372
> 11437
> 11455

Which is the same as 'pidof', with the difference that pidof does a 
full string-match and not a regexp-match I guess. In most cases you 
want the first anyway.

pidof is usually used by the sysv-scripts.

Kind regards,
--   dag wieers,  [EMAIL PROTECTED],  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]

__ 
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options: 
http://lists.samba.org/mailman/listinfo/distcc

Reply via email to