[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.8 Macros for running UNIX commands

There are a few builtin macros in T4 that allow you to run UNIX commands from within T4. These macros are only available when T4 is invoked with --unix option.

Any shell command can be executed, using \syscmd:

 
\syscmd{shell-command}

which executes shell-command as a shell command.

If you want T4 to read the output of a UNIX command, use \esyscmd:

 
\esyscmd{shell-command}

which expands to the standard output of the shell command shell-command.

To see whether a shell command succeeded, use \sysval:

 
\sysval

which expands to the exit status of the last shell command run with \syscmd or \esyscmd.



This document was generated on February, 23 2003 using texi2html