<< unix_g OS_commands unix_w >>

Scilab Help >> Input/Output functions > OS_commands > unix_s

unix_s

executes some Windows, Linux or MacOS instructions: output canceled (Silent mode) This function is obsolete. Please use host instead.

Syntax

unix_s(command)

Arguments

command

Single text containing some Windows, Linux, or MacOS instructions.

Description

unix_s(…) executes a command on the Operating system using CMD on Windows or sh on Linux and macOS without displaying any outputs.

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.

Examples

if getos() == 'Windows' then
  unix_s("del foo");
else
  unix_s("rm -f foo");
end

See also

History

VersionDescription
2026.0.0

Tagged obsolete, use [stat, _, stderr] = host(cmd) instead.


Report an issue
<< unix_g OS_commands unix_w >>