Runs a shell command line.

Inputs

Input

Data type

Description

EN

BOOL

The command is executed on a rising edge of this input.

CMD

STRING

Command line (can include arguments).

ARGS

STRING

Optional arguments to be added to the command line.

OUTFILE

STRING

Optional pathname of a file where to redirect shell outputs.

The command line contains the content of several inputs.

Example:

CMD = ‘ls’

ARGS = ‘./folder’

OUTFILE = ‘./dirlist.txt’

The command line will be: ls ./folder>./dirlist.txt

Hint: The syntax of the command line depends on the operating system. This function block may be not available on some platforms. Refer to your OEM for more details.

Outputs

Output

Data type

Description

READY

BOOL

Provides information about the function block:

  • TRUE when the block is ready to accept a new command.
  • FALSE during an exchange

ERR

DINT

Description of the last error.

FBD Language

Fixed_Image


Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation