Solved

Ps -ef with exclude option for shell processes ID

Posted on 2006-10-30
3
629 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

Industry Leaders: 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: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

734 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