executes some Windows, Linux or MacOS instructions: output in a dedicated window This function is obsolete. Please use host instead.
unix_x(command)
Single text: instruction(s) Windows, Linux or MacOS to be executed.
unix_x(…) executes a command on the Operating system using CMD on Windows or sh on Linux and macOS and the standart output is displayed in Scilab's messagebox.
The starting working directory and environment variables of the opened interpreter are set as described for host().
If an instruction in commands generates an error, this function throw a Scilab error.
if getos() == 'Windows' then unix_x("dir "+""""+WSCI+"modules\graphics\demos"+""""); else unix_x("ls $SCI/modules/graphics/demos"); end | ![]() | ![]() |
| Version | Description |
| 2026.0.0 | Tagged obsolete, use host plus messagebox instead. |