The exec-command set of functions allows execution of commands
through the command line interpreter of the operating system, such as "sh"
on Unix systems or "cmd.exe" on Windows.

For POSIX compliant platforms the functions return 128 + termination signal
code of the process as their exit-code.
On Windows platforms, the exit-code is the return value of the process or the exit
or terminate process specified value.

Returns

exec#1

This function does not allow arguments to be passed to
the command. The $filename parameter can contain the full path to the
executable. On Unix systems, if the specified filename does not contain
a slash "/", the function duplicates the actions of the shell in searching
for an executable file. The file is sought in the colon-separated list of
directory pathnames specified in the PATH environment variable. If this
variable isn't defined, the path list defaults to the current directory
followed by the list of directories returned by the operating system.

Parameters

filename as string

the name of program to be executed

Returns

object()

the result of the execution as an object

exec#2

The $filename parameter can contain the full path to the
executable. On Unix systems, if the specified filename does not contain
a slash "/", the function duplicates the actions of the shell in searching
for an executable file. The file is sought in the colon-separated list of
directory pathnames specified in the PATH environment variable. If this
variable isn't defined, the path list defaults to the current directory
followed by the list of directories returned by the operating system.
The $args parameters will be passed to the executable file as arguments.

Parameters

filename as string

the name of program to be executed

args as string

arguments to be passed to the executable

Returns

object()

the result of the execution as an object

exec#3

The $filename parameter can contain the full path to the
executable. On Unix systems, if the specified filename does not contain
a slash "/", the function duplicates the actions of the shell in searching
for an executable file. The file is sought in the colon-separated list of
directory pathnames specified in the PATH environment variable. If this
variable isn't defined, the path list defaults to the current directory
followed by the list of directories returned by the operating system.

The $env allows defining and passing environment variables to the target
process. They should be in the form "ENVVAR=value" where "ENVVAR" is the
name of the environment variable and "value' is the string value to set it to.