Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created December 14, 2018 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/c054e3af28a476a8eec2be40323be6d6 to your computer and use it in GitHub Desktop.
Save grahamc/c054e3af28a476a8eec2be40323be6d6 to your computer and use it in GitHub Desktop.
<program stdin="./command">
<command exec="cut">
<arg>-d</arg>
<arg> </arg>
<arg>-f</arg>
<arg>2</arg>
<stdout to="stderr" />
<stderr>
<command exec="cut">
<arg>-d</arg>
<arg> </arg>
<arg>-f</arg>
<arg>2</arg>
<!-- redirects via XPath to the program's stdout-->
<stdout to="/program/stdout" />
<stderr>
<file>/dev/null</file>
</stderr>
</command>
</stderr>
</command>
</program>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment