Re: [ilugd] killing a process when the user logout on FC3

2005-12-27 Thread Sudev Barar
On 12/28/05, Kapil Sethi <[EMAIL PROTECTED]> wrote: > > > > How do I extract the 2nd field from the file(/etc/spli.txt), I know awk or > > with sed one can do it but I don't know these scripting tools. > > > > cat /etc/spli.txt | awk '{print $2}' > > to kill > > kill `cat /etc/spli.txt | awk '{prin

Re: [ilugd] killing a process when the user logout on FC3

2005-12-27 Thread Kapil Sethi
> > How do I extract the 2nd field from the file(/etc/spli.txt), I know awk or > with sed one can do it but I don't know these scripting tools. > > cat /etc/spli.txt | awk '{print $2}' to kill kill `cat /etc/spli.txt | awk '{print $2}'` -- Regards Kapil Sethi ___

Re: [ilugd] killing a process when the user logout on FC3

2005-12-27 Thread Shiv
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.,

Re: [ilugd] killing a process when the user logout on FC3

2005-12-27 Thread Gora Mohanty
ankush grover <[EMAIL PROTECTED]> 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, wi

[ilugd] killing a process when the user logout on FC3

2005-12-27 Thread ankush grover
hey friends, 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. When the user logs in one can get the process id through this ps -ef | grep process > /etc/spli.txt But how do I kill the process whe