bye
The bye command is used to establish a script
file that will later be used automatically when you finish
your Autolog session. A typical bye file would contain say
commands to log you off the remote system or commands to perform other
finishing-up tasks that need to be done when you're done using the remote
computer.
The command
bye script file
causes the specified script file to be executed automatically
when you finish out of Autolog (or when an idle
time disconnect occurs).