CheerpX.Linux#run
Run a command
Parameters
- fileName (
string
) - The path to the executable file. - args (
string[]
) - Arguments to pass to the executable. - options (
object
, optional):- env (
string[]
): Environment variables for the process. - cwd (
string
): The working directory from which the command will be run. - uid (
number
): User ID under which the command will be executed. - gid (
number
): Group ID under which the command will be executed.
- env (
Returns
CheerpX.Linux.run
returns a Promise which resolves when the process terminates. The returned object contains the exit status.
Example
Let us try running a bash script: