Next: Processing the tool output, Previous: Querying switches interactively, Up: Executing external tools
The output of external commands is send by default to the GPS console window.
In addition, finer control can be exercised using the output attribute
of the <external> and <shell> tags.
This attribute is a string that may take any value. Two values have specific meanings:
"none"""other valuesThis attribute can also be specified at the <action> tag level, in which
case it defines the default value for all <shell> and <external>
tags underneath. If it isn't specified for the action itself, its default value
will always be the empty string, i.e. output is sent to the GPS console.
<?xml version="1.0" ?>
<ls>
<action name="ls current directory" output="default output" >
<shell output="Current directory" >pwd</shell>
<external output="Current directory contents" >/bin/ls</external>
</action>
</ls>