Re: get PID od existing process

2002-04-16 Thread Jonathan E. Paton
Michael Lamertz: > BTW: it's > > $output = `ps -e` > > You don't need the 'system' inside the backquotes. Think about using > qx{} instead of the backquote operator if you need to do more complex > stuff in the shell. It would be better to start using qx() now, it is far more readable. E.

Re: get PID od existing process

2002-04-16 Thread Michael Lamertz
On Tue, Apr 16, 2002 at 12:49:40PM +0100, Dermot Paikkos wrote: > Hi Guru's > > SYS stuff: perl 5.05 on Tru64 Unix. > > I am writing a script that needs to find the process IDs of a couple of > processes (so they can be killed nicely). Under the csh i would usually > do "ps -e| grep process".

get PID od existing process

2002-04-16 Thread Dermot Paikkos
Hi Guru's SYS stuff: perl 5.05 on Tru64 Unix. I am writing a script that needs to find the process IDs of a couple of processes (so they can be killed nicely). Under the csh i would usually do "ps -e| grep process". I am not sure if I can do something like this using system or if there is a m