[Ilugc] Kill Process.

  • From: jujubha@xxxxxxxxx (Chandrakumar Muthaiah)
  • Date: Tue, 24 Sep 2002 16:15:52 -0400

for X in `cat FILENAME`; do; kill -TERM $X; done

Gaurang Pandya wrote:

Ok, If I have more than 1 pids in that same file will this work?
If not how do I do that.

Thanks.

Gaurang.

On Tue, 24 Sep 2002 Chandrakumar Muthaiah wrote :


Gaurang Pandya wrote:

Hi,

I am not good at scripts.
Need a small favaour, I have a pid file and want to kill the process 
and its id is ther in that pid file. Now how can that be achieved by 
a script.


kill -TERM `cat <filename>`

Make sure replace the real file name for the <filename> and make sure 
you use back quotes (`) not (') not (")



_______________________________________________
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with 
"unsubscribe <password> address"
in the subject or body of the message.  
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc










Other related posts: