hey friends,<br>
<br>
I wanted to kill a process when the user logout.When the user logs in one can get the process id through this <br>
<br>
ps -ef | grep  process > /etc/spli.txt<br>
<br>
But how do I kill the process when the user logout(.bash_logout) well
there are  8 fields in /etc/spli.txt and the 2nd field is the
pid  which is needed by the kill command to end the process.<br>
<br>
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.<br>
<br>
Can anyone help me in solving this issue ?<br>
<br>
I am using FC3.<br>
<br>
Thanks & Regards<br>
<br>
Ankush Grover