ns_atclose(3) Facilities to register a script callback.

Other Alias

ns_atexit, ns_atshutdown, ns_atsignal

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.

KEYWORDS

shutdown, callback