Scripting

From IPLOG
Revision as of 08:26, 30 April 2020 by Z033 (talk | contribs) (Created page with "== Back to Libraries == == Scripting library == === Common === Allows to run any command, script or binary file from IPLOG filesystem. Be caref...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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