on_exec_prompt
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_exec_prompt [2007/03/02 21:52] (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 displays a " | ||
+ | More precisely, it is triggered when the process returns any line of | ||
+ | output that is not terminated by a newline. | ||
+ | with interactive commands, such as nslookup(1). | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 | ||
+ | |$1 | ||
+ | |||
+ | ======Default behavior: | ||
+ | If you do not suppress this event, the client will format the message | ||
+ | and display it to your screen **UNLESS** you are redirecting the output | ||
+ | of that [[exec]] to somewhere else. | ||
+ | |||
+ | ======Examples: | ||
+ | To hook the prompt when using nslookup interactively: | ||
+ | on ^exec_prompt "% >" { | ||
+ | assign foo $0 | ||
+ | input " | ||
+ | msg %${foo} $* | ||
+ | } | ||
+ | } | ||
+ | |||
on_exec_prompt.txt · Last modified: 2007/03/02 21:52 by 127.0.0.1