gvsunil
asked on
Ps -ef with exclude option for shell processes ID
Hi, We are using the following command to find all the processes owned by "admin" and the processes having name with SIS, ora.
ps -f |-u Admin grep [SIS] |grep -v " grep [ora\|SIS] " ,
This is listing all the process with ora and SIS and also the following which we want to avoid with shell processes like csh and ksh.
admin 400588 204800 0 13:57:50 pts/0 0:00 ksh
admin 543846 839918 0 16:28:59 pts/3 0:00 -csh
Could some body help us to fine tune the command to list out all the processes with SIS and ora and NOT to show the shell processes ?
Thanks
GVS
ps -f |-u Admin grep [SIS] |grep -v " grep [ora\|SIS] " ,
This is listing all the process with ora and SIS and also the following which we want to avoid with shell processes like csh and ksh.
admin 400588 204800 0 13:57:50 pts/0 0:00 ksh
admin 543846 839918 0 16:28:59 pts/3 0:00 -csh
Could some body help us to fine tune the command to list out all the processes with SIS and ora and NOT to show the shell processes ?
Thanks
GVS
ps -f -u Admin | grep [SIS] | egrep -v 'grep|ksh|csh'
ASKER
Thanks Amit,
this looks promising, but do you think the following change in your command will also show the ora and SIS processes as well ?
ps -f -u Admin | grep [ora\|SIS] | egrep -v 'grep|ksh|csh'
Thanks
GVS
this looks promising, but do you think the following change in your command will also show the ora and SIS processes as well ?
ps -f -u Admin | grep [ora\|SIS] | egrep -v 'grep|ksh|csh'
Thanks
GVS
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.