I have a perl script that is called from .bash_profile upon
login of the user, it presents a few options to the user to
perform some tasks etc, one being to exit the script to the
bash shell, another option I want is to actually be able to
logout directly and close the session in one go instead of
exiting the script and then having to logout.
is there an elegant way to do this?, at the moment I have am
needing to send kill to the process where bash is running
and then exit the script to close the shell down, I'm sure
there is a better way ?