Add a Postcommand in FDL (FlowTracer)
Goetz Leonhardt
New Altair Community Member
A pre-command or post-command (specified with properties PRECMD and POSTCMD respectively) can be specified in FDL as follows:
T echo hello > log
P POSTCMD {sh -c "echo post && exit 66" }
O -sticky log
The shell actual command is called sh -c, because the entire POSTCMD is run inside the system command from c, which does not offer any shell functionality like the echo command. More complex scripts should be specified in an executable file.
Tagged:
0