Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: AWKing for PIDs (was Re: NetBSD style rc.d scripts?)

From: Michael Erdely <mike(at)erdelynet.com>
Date: Fri Jan 31 2003 - 14:52:31 EST

I like that even better. In fact, to fix my code, I added the "c" switch to ps as well:

pidof() {
  ps -acxo pid,ppid,command | awk "\$3==\"$1\" && \$2==\"1\" {print \$1}" }

-ME

Christoph Moench-Tegeder said:
> ## Michael Erdely (mike@erdelynet.com):
Received on Fri Jan 31 14:54:24 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:29 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library