<<

Contents

Search

>>

 

SHELLW

 

 

Instruction

 

 

Syntax:

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

 

<Macroname>

= <MACRONAME>

<Command>

= <STRING-EXPRESSION>

<Only 1 macro call>

= <NUM-EXPRESSION>

 

 

Meaning:

Executes a shell command. A window is opened in which the standard output of the command is displayed.

 

If a <Macroname> is specified, the standard output of the command is also diverted 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:

Macroname

Name of macro

Command

Command

Only 1 macro call

The macro <Macroname> is only called once.

 

Sample:

SHELLW "dir *.dat  /W"

 

SHELLW "prog.exe"

 

See also:

SHELL

SHELL_CLIENT

SHELLW_CLIENT

ENABLE / DISABLE WAITSHELL

EBUS_STDOUT$

CHAIN