Execute(command, timeout, input, output);
command
timeout
StreamServer will wait the specified amount of time before it tries to shutdown the called process and returns to operation.Timeout set to -1 means StreamServer will “wait forever”. This is the default value.input
output
• output[0] – STDOUT output from the called process.
• output[1] – STDERR output from the called process.
• output[2] – Exit code from the called process.
Note: This script function has the same security context as the one defined for the StreamServer application (Log on setting defined for the StreamServer application). For example, if Log on as: Local System account is defined for the StreamServer application, this script function can only be executed on the local computer.
0 1 2 3 4 $command = eval("java -cp <22>..\data<22> FileDownloader $link $lPath");$return = execute($command, 120, "", $outvar);$output = $outvar[0];$error = $outvar[1];$exitcode = $outvar[2];
OpenText StreamServe 5.6 | Updated: 2013-03-01 |