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!

korn Script to read PID from file , display process & select to kill

Status
Not open for further replies.

warburp

IS-IT--Management
Oct 27, 2003
44
GB
Hi

I have asked a number of questions but this is what I am ultimately trying to do.

1.I am writing the pid of each interface script to a file (and removing it if completed)
2.I want to display all processes with user and command where the pid exists in the file.
3.I want a user from a menu to be able to select an option to kill any one of the processes running.

I have got as far as being able to write all the pids from the file to an array, but I can't seem to use the array in the ps command. Once I can do this I want to display them and then be able to kill them.

Any help would be appreciated as I don't want users to be able to kill any old process and I don't want to be working over the holidays.

Thanks

Phil.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top