Solved

Ps -ef with exclude option for shell processes ID

Posted on 2006-10-30
3
632 Views
Last Modified: 2013-12-26
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
0
Comment
Question by:gvsunil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Expert Comment

by:amit_g
ID: 17838477
ps -f -u Admin | grep [SIS]  | egrep -v 'grep|ksh|csh'
0
 

Author Comment

by:gvsunil
ID: 17839022
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
0
 
LVL 58

Accepted Solution

by:
amit_g earned 500 total points
ID: 17839028
Use egrep instead

ps -f -u Admin | egrep 'ora|SIS'  | egrep -v 'grep|ksh|csh'
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question