You want the script to logout of UNIX?
In your script...
I've never wanted to do this, but it might work...
(it does kinda assume that the parent process is the login one)
Basically you need to find the PID of the "-ksh", "-bash", or whatever process that's your login process - and kill it.
If your want to make sure the script always logs out once it's done, add something like
Code:
trap 'kill -9 $PPID' 0 1 2 9 15 16
to your script (man trap for more details)