On 22/12/04 21:32 +0530, Dr. Sharukh K. R. Pavri. wrote: > On Wed, 22 Dec 2004, Binand Sethumadhavan wrote: > > > On Wed, 22 Dec 2004 11:22:15 +0530, Raj Mathur <[EMAIL PROTECTED]> wrote: > > > Another way of achieving the same effect is: > > > > > > ps ax | fgrep cron | fgrep -v fgrep > > > > Heh. This brings up one of my favourite Unix interview questions. > > > > How do you do the same thing for a (possibly long running) grep > > command? That is, in the example above, instead of cron, how do you > > get exactly one line of output if the process in question were a grep? > > > > Binand > > Ok, so are you going to enlighten us as to the answer ? please ?
ps aux|grep foo|grep -v grep Devdas Bhagat ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ linux-india-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-india-help
