kill < file (Feeding kill from file), PID, <, awk, grep
Hi, In a script I have written, I have extracted a couple of processes by using (ps -ef) and (grep) and placed them in a file called (kill_PID). Then after using (awk) I am left with 2 PID's that I need to feed to (kill) command. Here is the scenario simplified:
File called (kill_PID) has 1 column with 2 values, lets give them the following values:
What do I need to add to my script in order to extract these to values from file (kill_PID) and feed them into kill command in order to kill both PID's.
kill < kill_PID
But this did not work. Feedback is appreciated.
Last edited by jaffd; 04-08-2010 at 10:52 PM.
Reason: explain more