The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Identifying and grouping OS processes and APP processes wilsonee SUN Solaris 2 1 Week Ago 06:26 AM
Monitoring Processes - Killing hung processes ukndoit UNIX for Advanced & Expert Users 4 01-17-2008 12:30 AM
Processes Krrishv Shell Programming and Scripting 17 01-25-2007 05:07 AM
Processes Beetlejuice UNIX for Dummies Questions & Answers 4 04-06-2005 09:33 AM
processes master_6ez Shell Programming and Scripting 3 11-24-2004 05:48 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Aug 2002
Posts: 4
processes

What command string will locate ONLY the PID of a process and ouput only the number of PID of the process?
Forum Sponsor
  #2 (permalink)  
Old 08-13-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Found this
ps -ef | sed -n '/aim.*\.sh/{/grep/!p;}' | awk '{print$2}' | xargs -i kill {}

from this post - realize it is killing the process - just remove the last pipe and xargs -i kill {} if you don't need to kill it. This is looking for a processes with aim.* in it.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0