Kevin- FFR, you will need to be subscribed to tomsrtbt to post. -Tom

---------- Forwarded message ----------
Date: Thu, 18 Nov 1999 17:32:19 -0500
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: BOUNCE tomsrtbt: Non-member submission from [Kevin Haywood 
<[EMAIL PROTECTED]>]

>From [EMAIL PROTECTED]  Thu Nov 18 17:32:18 1999
Received: from www0l.netaddress.usa.net (www0l.netaddress.usa.net [204.68.24.41])
        by toms.net (8.9.1a/8.8.8) with SMTP id RAA16988
        for <[EMAIL PROTECTED]>; Thu, 18 Nov 1999 17:32:16 -0500
Received: (qmail 5857 invoked by uid 60001); 18 Nov 1999 22:32:13 -0000
Message-ID: <[EMAIL PROTECTED]>
Received: from 204.68.24.41 by www0l for [137.244.215.2] via web-mailer(M3.3.1.96) on 
Thu Nov 18 22:32:13 GMT 1999
Date: 18 Nov 99 14:32:13 PST
From: Kevin Haywood <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: adding PPID to /usr/bin/ps
X-Mailer: USANET web-mailer (M3.3.1.96)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by toms.net id RAA16989

Tom and company,

I made a small change to /usr/bin/ps to display the PPID
parent process ID. Just add one variable to the "read" command.
then echo the extra variable:

 read a b c d x<$i/stat
 echo "$a $d $c $b 'cat -v $i/cmdline'"

This helps me keep the processes straight. a is the PID and d is the
PPID. I only added five bytes.

Tom's RTBT is fascinating. It's a great way to learn about Linux
and sharpen my scripting skills.


Thanks,

Kevin
in
Kathleen, Georgia


____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at 
http://webmail.netscape.com.

Reply via email to