I don't know if there's a better way, but I tried for a long time with
runCommand and Java's own methods for that, and then came up with the
idea of using a shell script as a proxy, since I also wanted to be
able to pass in a single shell command as in Ruby, rather than break
up a command into command and arguments as runCommand requires:

runCommand('shell', command, options)

And in the 'shell' proxy script:

#!/bin/sh
eval $1
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to