<<

Contents

Search

>>

 

SHELL

 

 

Instruction

 

 

Syntax:

SHELL[(<Macroname>)] <Command> [,<Only 1 macro call>]

 

<Macroname>

= <MACRONAME>

<Command>

= <STRING-EXPRESSION>

<Only 1 macro call>

= <NUM-EXPRESSION>

 

 

Meaning:

Executes a shell command.

 

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 outpt (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:

Macroname

Name of macro

Command

Command

Only 1 macro call

The macro <Macroname> is only called once.

 

Sample:

SHELL "dir *.dat  /W"

 

SHELL "cmd /c batch.bat"

 

See also:

SHELLW

SHELL_CLIENT

SHELLW_CLIENT

ENABLE / DISABLE WAITSHELL

EBUS_STDOUT$

CHAIN