[mdlug] logout script?
Michael Corral
micorral at comcast.net
Wed Dec 20 17:24:55 EST 2006
Wojtak, Greg a ecrit:
> Either or... the problem is that since we exec the actual binary of the
> application, /usr/bin/ksh gets replaced, right? So we can't do anything
> after that since when the users exit out of the telnet based app they get
> logged out of their session. Does that make sense?
Try the trap command in the users' .profile:
trap "rm -rf /home/wojtak" 0 1
This will run the command "rm -rf /home/wojtak" when the user exits (0)
or logs out (1).
Michael
More information about the mdlug
mailing list