run command or file in another Scilab
[err, stdout, stderr] = scilab(code, file, mode, quit, args)
scilab(..., background)
command to execute in the new Scilab.
file to execute in the new Scilab.
"nwni"
: to start a new Scilab without graphical and Xcos features.
"nw"
: to start a new Scilab with graphical and Xcos features. (default)
boolean to indicate if Scilab must quit after execution (default: %t)
Other arguments to pass to the new Scilab, they can be retrieved via sciargs.
boolean to indicate that the new Scilab must be launched in a detached process without waiting for end of execution to continue.
![]() | If |
status of execution (0 if succeeded).
Content of Standard Output.
Content of Standard Error.
Executes code
or file
in a new Scilab and returns status and logs.
![]() |
|
We recommand to use this function with named arguments (see examples)
//execute 1+1 in a new Scilab and exit at the end [status, stdout, stderr] = scilab(code="1+1") //execute 1+1 in a new Scilab and exit at the end without graphics [status, stdout, stderr] = scilab(code="1+1", mode="nwni") tmp = tempname(); mputl("1+1", tmp); //execute 1+1 in a new Scilab and exit at the end [status, stdout, stderr] = scilab(file=tmp) //execute 1+1 in a new Scilab and exit at the end without graphics [status, stdout, stderr] = scilab(file=tmp, mode="nwni") | ![]() | ![]() |
Version | Description |
2024.1.0 | scilab function introduced |