Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with 'ps' command please

Status
Not open for further replies.

frag

Programmer
Dec 7, 2000
321
GB
Hi folks!

I am looking for a way to get all processes from a certain user.

I am doing this with: 'ps -ef | grep -i <username>'

Problem is that I receive a lot of stuff that I actually don't want to have like '-ksh', 'ssh' 'bash', etc. All I want are the shellscripts and programs started by a certain user (ok, the things listed above are programs too, but I don't want them to be in the displayed list).

Is there a way to implement this? Any tips are welcome!

Cheers

frag

patrick.metz@epost.de
 
try ps -u

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
thsi will come up with the bash, ksh, ssh, blabla processes aswell :(

patrick.metz@epost.de
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top