• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Tried to do something like:

        ($output, $status) = $sandbox->sysCommand( $cdCmd );
        ($output, $status) = $sandbox->sysCommand( $execCmd );

But it seems working dir (set by $cdCmd ) doesn't survive between calls.

This is specifically for TWiki:Plugin.GnuPlotPlugin and TWiki:Plugin.PloticusPlugin, where gnuplot and ploticus binaries doesn't have command line options to set working dirs.

-- SP

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?

-- SP

Summary Can't set working directory in sandbox
ReportedBy TWiki:Main.SteffenPoulsen

SVN Range Fri, 28 Apr 2006 build 9945
AppliesTo Engine

Priority Urgent
CurrentState No Action Required


TargetRelease n/a
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2006-04-29 - SteffenPoulsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback