Provided by: aolserver4-dev_4.5.1-16_amd64 bug

NAME

       ns_atclose,  ns_atexit,  ns_atshutdown,  ns_atsignal  -  Facilities  to  register a script
       callback.

SYNOPSIS

       ns_atclose script
       ns_atexit script
       ns_atshutdown script
       ns_atsignal script
_________________________________________________________________

DESCRIPTION

       These commands register a callback to execute a later time.  The  callbacks  are  executed
       once in the context of the current Tcl interpreter.

       ns_atclose script
              Invoke  given  script  when  the  current connection is closed. The callback can be
              registered within the Tcl interpreter associated with the current HTTP  connection;
              if no connection exists, and error is returned.

       ns_atexit script
              Invoke  given  script  before  the  AOLserver exists after all virtual servers have
              stopped.

       ns_atshutdown script
              Invoke given script when the current virtual server is  shutdown  during  AOLserver
              exit.

       ns_atsignal script
              Invoke  given script when a SIGHUP signal is received in the main startup thread of
              the AOLserver.

SEE ALSO

       ns_shutdown(n), ns_kill(n)

KEYWORDS

       shutdown, callback