tburba on Mon, 1 Nov 1999 17:01:09 -0500 (EST) |
Elegant! Many thanks... tnelson@fast.net on 10/30/99 07:11:13 AM Please respond to plug@lists.nothinbut.net To: plug@lists.nothinbut.net cc: (bcc: Thomas A Burba/USVISION) Subject: Re: [Plug] log user out at subshell level? tburba@GLCORPIS01.usvision.com wrote: > Is there any way that I can invoke a command within a subshell (bash) > script to log the user out? I don't want to use .bash_profile or shell > replacements. TAMIA This should work (for suitably harsh values of 'log out'): kill -9 `ps | sort -n | head -2 | tail -1 | awk '{ print $1 }'` Stick it in a shell script named "logout". _______________________________________________ Plug maillist - Plug@lists.nothinbut.net http://lists.nothinbut.net/mail/listinfo/plug _______________________________________________ Plug maillist - Plug@lists.nothinbut.net http://lists.nothinbut.net/mail/listinfo/plug
|
|