Re: Extraction of PID

2003-07-26 Thread Peter
Wonderful --who will ever fathom what hidden treasures there are in a Linux box. I needed this PID of pppd for my little script which shows in a terminal From: and Subject: as mail is coming in; tail -f --pid PID file. Thanks again -- Peter - To unsubscribe from this list: send the line "un

Re: Extraction of PID

2003-07-26 Thread chuck gelm
ps -a --pid | grep exmh | cut -b 2-5 HTH, Chuck Peter wrote: > > Hi, > > How do I isolate from a line like > > 1865 tty2 00:00:18 exmh > > the first 4 numbers which is the PID. I get it with "ps -a --pid | grep > exmh". ^ ? > > Th

Re: Extraction of PID

2003-07-26 Thread pa3gcu
On Saturday 26 July 2003 08:58, Peter wrote: > Hi, > > How do I isolate from a line like > > 1865 tty2 00:00:18 exmh > > the first 4 numbers which is the PID. I get it with "ps -a --pid | > grep exmh". If your system has "pidof" installed; then 'pidof exmh' > Thanks & regards -- If the Li

Re: Extraction of PID

2003-07-26 Thread bilbo
On Saturday 26 July 2003 7:58 am, Peter wrote: >Hi, > >How do I isolate from a line like > >1865 tty2 00:00:18 exmh > >the first 4 numbers which is the PID. I get it with "ps -a --pid | grep >exmh". Hi, As usual in 'nix there are several different ways of doing this. My first guess was: ps

Extraction of PID

2003-07-25 Thread Peter
Hi, How do I isolate from a line like 1865 tty2 00:00:18 exmh the first 4 numbers which is the PID. I get it with "ps -a --pid | grep exmh". Thanks & regards -- Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED]