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 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. 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. Can anyone help me in solving this issue ? I am using FC3. Thanks & Regards Ankush Grover _______________________________________________ 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]/
