Gora Mohanty <[EMAIL PROTECTED]> wrote:  ankush grover  wrote:
I wanted to kill a particular process when the user logout.This
process starts when the user logs in and want to kill the 
process when user logout.
[...]
bash has a huponexit shell option that can be set with shopt. Setting
this, e.g., in the login file, will send a SIGHUP to all jobs started by a
user when the login shell exits. Does this meet your needs?

Regards,
Gora


Hi,
  you dont need to know any fancy scripting commands to extract column 2  from 
a multi-column output. a clever combination of 'tr' and 'cut' will  solve your 
problem:
  #ps -fe|grep xyz|tr -s ' ' | cut -f 2 -d ' '
  should work in most cases



catch ya later (Ive gotta UnWire Life!!!)
  shiv
                
---------------------------------
Yahoo! for Good - Make a difference this year. 
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to