Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:54 pm
by Brendan >> Wed, 12 Oct 2005 17:03:43 GMT
Hi,
You use Node::createExternalProcess. It works on both Windows and Linux.
For example
returnVal := node.createExternalProcess("", scriptName, null, null, false, true, result);
will run a script on the Linux server with no parameters modally and the exit value of the script will be in the result variable. node will have to be referencing the Linux box you want to run the script on, either an appserver or a db server node. I would guess (but am not sure) that in JADE 6.1 you could also use this method to run a script on a Linux client by setting parameter 5 above to true.
The usual PATH rules apply so that a script not in any of the directories in the PATH shell variable will have to be referred to as ./scriptName etc.
Cheers, Brendan