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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX/KSH Process user/command questions 1

Status
Not open for further replies.

TheElephantMan

Programmer
Joined
Jun 18, 2004
Messages
42
Location
US
Hi, all.

Pardon my command line ignorance, but I'm at quite a quandary with some information I'm trying to gather from one of our AIX boxes.

1: If I have a process ID, is there a script that I can execute that will display the user that is running that process?

2: Along similar lines, if I have a command currently running, is there a script that I can execute that will display the process ID that's running it?

Thanks for the help!
 
There are many ways to do what you are looking for, here are a couple of commands.

1. ps -ef | grep PID
2. ps -ef | grep CommandName


Jim Hirschauer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top