<String> Current working directory of the child process
<Object> Environment key-value pairs
<String> (Default: 'utf8')
<String> Shell to execute the command with (Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should understand the -c switch on UNIX or /d /s /c on Windows. On Windows, command line parsing should be compatible with cmd.exe.)
<Number> (Default: 0)
<Number> largest amount of data (in bytes) allowed on stdout or stderr - if exceeded child process is killed (Default: 200*1024)
<String> (Default: 'SIGTERM')
<Number> Sets the user identity of the process. (See setuid(2).)
<Number> Sets the group identity of the process. (See setgid(2).)
<String> Current working directory of the child process
<String> (Default: 'utf8')
<Object> Environment key-value pairs
<Number> Sets the group identity of the process.
<Number> Sets the group identity of the process. (See setgid(2).)
<String> (Default: 'SIGTERM')
<Number> largest amount of data (in bytes) allowed on stdout or stderr - if exceeded child process is killed (Default: 200*1024)
<String> Shell to execute the command with (Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should understand the -c switch on UNIX or /d /s /c on Windows.
<String> Shell to execute the command with (Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should understand the -c switch on UNIX or /d /s /c on Windows. On Windows, command line parsing should be compatible with cmd.exe.)
<Number> (Default: 0)
<Number> Sets the user identity of the process.
<Number> Sets the user identity of the process. (See setuid(2).)
Spawns a shell then executes the command within that shell, buffering any generated output.
Note: Never pass unsanitized user input to this function. Any input containing shell meta-characters may be used to trigger arbitrary command execution.