|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
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
|