AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20081107161107.518914a8@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:exch1.onstor.net
NSV:
SSH:
R:<sandrine.boulanger@onstor.com>,<dl-QA@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 7 Nov 2008 16:11:21 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: Sandrine Boulanger <sandrine.boulanger@onstor.com>
Cc: dl-QA@onstor.com
Subject: ps command
Message-ID: <20081107161121.6c300abe@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi Sandrine & QA folks,

You said you wanted to see that ps command I used.

As always, the man pages are available at

http://ripper.onstor.net/cgi-bin/man/man2html

The command is:

ps ax -o pid,ppid,tt,wchan,state,start,time,command

Will give you the start time for each process, as well as the event
(wchan) the process is sleeping on if it's sleeping (as the exim
processes are when they get stuck), the parent process id, and so
forth.  You can add other words as you see fit; 'size' is a common one
for me.  Because I occassionally do that, I noticed that ipmd in dev
branch has a memory leak ~:^)

That version of the command will give you the listing truncated to the
width of your terminal window.  If you want wider, you can say ps axw
for a little wider, or ps axww for no truncation.  Piping the output of
ps to another command, like grep, implies -ww.

You can also create an alias to have a shorthand for this longish
command.

Cheers,

a
