Re: Monitoring CPU usage of a process

2002-06-03 Thread Andrew Perrin
There are easier ways than these, at least with this ps: nujoma:~> ps --version procps version 2.0.7 nujoma:~> ps -opid,cmd,%cpu -p 4400 PID CMD %CPU 4400 -csh 0.0 nujoma:~> ps -opid,cmd,%cpu -C ps PID CMD %CPU 4436 ps -opid,cmd,%cp 0.0 put into a cr

Re: Monitoring CPU usage of a process

2002-06-03 Thread Colin Watson
On Mon, Jun 03, 2002 at 12:34:21PM +1000, Chris Kenrick wrote: > You've probably already thought of this, but would a simple shell script > do the trick... > > eg > > while [ true ] > do Just so you know, that syntax ('[ true ]') actually tests the length of the string 'true'. While it does a

Re: Monitoring CPU usage of a process

2002-06-02 Thread Brian Dessent
Adar Dembo wrote: > > I have some processes whose cpu usage I would like to monitor, and pipe > into a file. As far as I know, top can't monitor a single process and > send its cpu usage into a file, so I'm wondering what other programs > might do this. This is a testing installation, on a compute

Re: Monitoring CPU usage of a process

2002-06-02 Thread Patrick Wiseman
On Sun, 2 Jun 2002, Adar Dembo wrote: > I have some processes whose cpu usage I would like to monitor, and > pipe into a file. As far as I know, top can't monitor a single process > and send its cpu usage into a file Actually, it can: #top p follows a single process; add the 'b' flag for batch

Re: Monitoring CPU usage of a process

2002-06-02 Thread Chris Kenrick
owever. > > -Adar Dembo > - Original Message - > From: "David Palmer" <[EMAIL PROTECTED]> > To: "Adar Dembo" <[EMAIL PROTECTED]>; > Sent: Sunday, June 02, 2002 7:13 PM > Subject: Re: Monitoring CPU usage of a process > > >

Re: Monitoring CPU usage of a process

2002-06-02 Thread Adar Dembo
letely console-based system. No X, no KDE, no GNOME, nothing. Thanks for the suggestion, however. -Adar Dembo - Original Message - From: "David Palmer" <[EMAIL PROTECTED]> To: "Adar Dembo" <[EMAIL PROTECTED]>; Sent: Sunday, June 02, 2002 7:13 PM Subject: Re:

Re: Monitoring CPU usage of a process

2002-06-02 Thread David Palmer
Hello, Try gkrellm. Regards, David. On Mon, 3 Jun 2002 09:32, Adar Dembo wrote: > I have some processes whose cpu usage I would like to monitor, and > pipe into a file. As far as I know, top can't monitor a single > process and send its cpu usage into a file, so I'm wondering what > other progr