|
|
SHELL_CLIENT
|
Syntax: |
SHELL_CLIENT[(<Macroname>)] <Command> [,<Only
1 macro call>]
|
||||||
|
|
|
||||||
|
Meaning: |
Executes a shell command on the client
computer in a 2T program. If the program is not a 2T program,
SHELL_CLIENT is identical with SHELL. If a <Macroname> is specified, the
standard output of the command is redirected to the program: With each output
line the Macro <Macroname> is executed if <Only 1 macro call> = 0
or the parameter is missing. EBUS_STDOUT$ contains the line and EBUS_DATA = -1 if it is an error output (Stderror), and EBUS_DATA = 0 if it is a standard output of the command. If <Only 1 macro call> <> 0 the
macro <Macroname> is executed only once after the <Command> has
been executed. EBUS_STDOUT$ contains all standard outputs separated by EBUS_LINEFEED$. The switch ENABLE
/ DISABLE WAITSHELL controls whether
the program waits until the execution of the command is terminated or whether
it continues immediately. |
||||||
|
Parameter: |
|
||||||
|
Sample: |
SHELL_CLIENT "dir *.dat /W" SHELL_CLIENT "prog.exe" |
||||||
|
See also: |