Site Tools


on_exec

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

on_exec [2007/03/02 21:50] (current)
Line 1: Line 1:
 +======Synopsis:​======
 +[[on]] [<​modes>​]exec [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +
 +======Description:​======
 +This hook is triggered whenever an [[exec command|EXEC]]ed process generates output to
 +standard output.
 +
 +======Parameters:​======
 +|$0    |the exec name or refnum that triggered the hook. |
 +|$1-   | a line of the process'​s stdout |
 +
 +======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 distinguish process output from other window output:
 +   on ^exec "​*"​ {
 +      echo [$0] $1-
 +   }
 +
  
on_exec.txt ยท Last modified: 2007/03/02 21:50 (external edit)