Scripting

From IPLOG
Jump to: navigation, search

Back to Libraries

Scripting library

Common

Allows to run any command, script or binary file from IPLOG filesystem.

Be carefull on using it!

RUN_CMD

Runs given command on background without waiting for its completition

in RUN bool r_edge rising edge starts the command
in PATH string command or path to binary or script
in ARG1 string arguments
in ARG2 string arguments

RUN_CMD_SYNC

Runs given command, waits for completition and returns its exit code

Waiting for completition can be longer than requested cycle time!

in RUN bool r_edge rising edge starts the command
in PATH string command or path to binary or script
in ARG1 string arguments
in ARG2 string arguments
out EXIT_CODE int exit code