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