Re: grep'ping the ps output....

2005-12-13 Thread Eric Schuele
Sergey Zaharchenko wrote: Hello Eric! Mon, Dec 12, 2005 at 10:04:51AM -0600 you wrote: I was wondering if someone could explain why it is sometimes there and not other times. Sometimes the ps process manages to catch the system state when grep has not been started yet by the shell. Sometim

Re: grep'ping the ps output....

2005-12-13 Thread Sergey Zaharchenko
Hello Eric! Mon, Dec 12, 2005 at 10:04:51AM -0600 you wrote: > I was wondering if someone could explain why it is sometimes there and > not other times. Sometimes the ps process manages to catch the system state when grep has not been started yet by the shell. Sometimes it doesn't. > And how I

Re: grep'ping the ps output....

2005-12-12 Thread Giorgos Keramidas
On 2005-12-12 10:04, Eric Schuele <[EMAIL PROTECTED]> wrote: > Hello, > > I am sure this is quite trivial, but... > > I have need to determine if an app (firefox, or anything really) is > already running before I perform some action. So I grep the ps output. > However sometimes (many times) that

Re: grep'ping the ps output....

2005-12-12 Thread Eric Schuele
Kirk Strauser wrote: On Monday 12 December 2005 10:16, Alex Zbyslaw wrote: ps | egrep firefox | egrep -v egrep Ouch! Replace that with: ps | grep "[f]irefox" Ah, yes. Very nice. Thanks. which will never match the grep commandline itself. -- Regards, Eric

Re: grep'ping the ps output....

2005-12-12 Thread Eric Schuele
Alex Zbyslaw wrote: Eric Schuele wrote: Hello, I am sure this is quite trivial, but... I have need to determine if an app (firefox, or anything really) is already running before I perform some action. So I grep the ps output. However sometimes (many times) that which I'm searching for is

Re: grep'ping the ps output....

2005-12-12 Thread Kirk Strauser
On Monday 12 December 2005 10:16, Alex Zbyslaw wrote: > ps | egrep firefox | egrep -v egrep Ouch! Replace that with: ps | grep "[f]irefox" which will never match the grep commandline itself. -- Kirk Strauser The Day Companies ___ freebsd-questio

Re: grep'ping the ps output....

2005-12-12 Thread Alex Zbyslaw
Eric Schuele wrote: Hello, I am sure this is quite trivial, but... I have need to determine if an app (firefox, or anything really) is already running before I perform some action. So I grep the ps output. However sometimes (many times) that which I'm searching for is present in the outpu

Re: grep'ping the ps output....

2005-12-12 Thread Louis J. LeBlanc
On Mon, December 12, 2005 11:04 am, Eric Schuele wrote: > Hello, > > I am sure this is quite trivial, but... > > I have need to determine if an app (firefox, or anything really) is > already running before I perform some action. So I grep the ps output. > However sometimes (many times) that whic

grep'ping the ps output....

2005-12-12 Thread Eric Schuele
Hello, I am sure this is quite trivial, but... I have need to determine if an app (firefox, or anything really) is already running before I perform some action. So I grep the ps output. However sometimes (many times) that which I'm searching for is present in the output because I am present