Tried to do something like:
($output, $status) = $sandbox->sysCommand( $cdCmd );
($output, $status) = $sandbox->sysCommand( $execCmd );
But it seems working dir (set by
) doesn't survive between calls.
This is specifically for TWiki:Plugin.GnuPlotPlugin
, where gnuplot and ploticus binaries doesn't have command line options to set working dirs.
You should not be able to, and certainly shouldn't rely on it. System commands are excuted in subprocesses, and there is no export of enviornment from one to the next.
Write a script that does it, and call that
as your command.
Thanks! Would like to add this to a sandbox "best practices" doc, but couldn't find a pointer. Any existing doc on sandbox?