Home » Infrastructure » Unix » ps -ef|grep command question
ps -ef|grep command question [message #271245] Mon, 01 October 2007 00:41 Go to next message
toshidas2000
Messages: 120
Registered: November 2005
Senior Member
I remember there was a switch to avoid the output of ps -ef|grep smon to print 2 lines output. One for process and one for own command. Can you please tell me the switch of grep command...
Re: ps -ef|grep command question [message #271251 is a reply to message #271245] Mon, 01 October 2007 00:54 Go to previous messageGo to next message
Michel Cadot
Messages: 64102
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
ps -ef|grep smon | grep -v grep

Regards
Michel
Re: ps -ef|grep command question [message #273119 is a reply to message #271251] Tue, 09 October 2007 02:25 Go to previous message
KCee
Messages: 16
Registered: October 2006
Junior Member
ps -ef |grep [s]mon

the result of using [s]mon result is you can skip one extra pipe
Previous Topic: Script works individially but not when put in cron
Next Topic: EM agent issue
Goto Forum:
  


Current Time: Fri Dec 02 18:28:53 CST 2016

Total time taken to generate the page: 0.20215 seconds