on_exec_exit
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_exec_exit [2007/03/03 17:58] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======Description: | ||
+ | This hook is triggered whenever an [[exec command|EXEC]]ed process finishes, | ||
+ | either because it exits, it is killed by a signal, or you asked the client | ||
+ | to disown it. | ||
+ | |||
+ | This hook is always thrown, no matter what the value of | ||
+ | [[set notify_on_termination]] is. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 |process number or name of the [[exec command|EXEC]]ed process | ||
+ | |$1 |signal that killed the process, or 0 (zero) if it exited normally | | ||
+ | |$2 |exit code (usually zero, unless $1 is non-zero) | ||
+ | |||
+ | ======Default behavior: | ||
+ | If you do not suppress this event, the client will format the message | ||
+ | and display it to your screen **UNLESS** [[set notify_on_termination]] | ||
+ | is OFF. | ||
+ | |||
+ | ======Examples: | ||
+ | To display when a process exits: | ||
+ | on ^exit_exec " | ||
+ | if ( [$2] ) { | ||
+ | xecho -b Process ' | ||
+ | } { | ||
+ | xecho -b Process ' | ||
+ | } | ||
+ | } | ||
+ | |||
+ | ======History: | ||
+ | The [[ON EXEC_EXIT]] hook first appeared in ircII. | ||
+ | #$EPIC: on_exec_exit.txt, | ||
on_exec_exit.txt · Last modified: 2007/03/03 17:58 by 127.0.0.1