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.
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.