executes some Windows, Linux or MacOS instructions: output in Scilab's console This function is obsolete. Please use host instead.
unix_w(command)
A single text: instruction(s) Windows, Linux or MacOS to be executed.
unix_w(…) executes a command on the Operating system using CMD on Windows or sh on Linux and macOS and force the output to display in Scilab's console.
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_w("dir "+'""'+WSCI+"\modules"+'""'); else unix_w("ls $SCI/modules"); end | ![]() | ![]() |
| Version | Description |
| 2026.0.0 | Tagged obsolete, use host(cmd, echo=%t) instead. |