Whole document tree
Running UNIX commands
There are a few builtin macros in Executing simple commands
Any shell command can be executed, using syscmd(shell-command) which executes shell-command as a shell command.
The expansion of
Prior to executing the command,
The builtin macro Reading the output of commands
If you want esyscmd(shell-command) which expands to the standard output of the shell command shell-command.
Prior to executing the command,
Assume you are positioned into the `checks' directory of GNU
define(`vice', `esyscmd(grep Vice ../COPYING)') => vice => Ty Coon, President of Vice =>
Note how the expansion of
The builtin macro Exit codes
To see whether a shell command succeeded, use sysval
which expands to the exit status of the last shell command run with
syscmd(`false') => ifelse(sysval, 0, zero, non-zero) =>non-zero syscmd(`true') => sysval =>0 Making names for temporary files
Commands specified to maketemp(template)
which expands to a name of a new, empty file, made from the string
template, which should end with the string `XXXXXX'. The six
maketemp(`/tmp/fooXXXXXX') =>/tmp/fooa07346
The builtin macro Go to the first, previous, next, last section, table of contents. |