BEE Script: exec prog [args=var] [istream=var] [ostream=var];
BEE Tag: <beeexec prog [args=var] [istream=var] [ostream=var]>
The "exec" command executes a program in the operating system. In fact, the name prog is merely a "stub" to invoke the necessary system commands to do the job. This "stub" needs to be installed by the BEE Administrator and is assigned with proper permission, ownership and CROFT mapping.
Parameters
args is a variable that contains an array of command line arguments to be included when executing the specified file.
istream is a variable that contains an array of input passed as the input stream of the program to be executed. Each element in the istream array represents a line in the input stream.
ostream is a variable that contains an array of output passed out from the output stream of the program after being executed. Each element in the ostream array represents a line in the output stream.
After calling the function, the following BEE Variables are made available:
status%exec |
The status code returned by the program after being executed. |
message%exec |
The last line in the ostream. This is useful for programs returning only one line. ("ostream" is usually used when the program returns multiple lines.) |
|