<< unix_g Input/Output functions unix_w >>

Scilabヘルプ >> Input/Output functions > unix_s

unix_s

シェル (sh)コマンドを実行, 出力なし

呼び出し手順

unix_s(cmd)

パラメータ

cmd

文字列

説明

shシェルで実行する文字列 cmdを Unixに送信します. 標準出力は /dev/null にリダイレクトされます. Unix実行エラーはトラップされます; *注意* コマンドのリストを ";" で区切った場合, 最後のシェルコマンドエラーのみが リポートされます.これは推奨されません.

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

参照


Report an issue
<< unix_g Input/Output functions unix_w >>