<< unix_w Input/Output functions writb >>

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

unix_x

シェル (sh) コマンドを実行, 出力はウインドウにリダイレクト

呼び出し手順

unix_x(cmd)

パラメータ

cmd

文字列

説明

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

if getos() == 'Windows' then 
  unix_x("dir "+""""+WSCI+"modules\graphics\demos"+""""); 
else 
  unix_x("ls $SCI/modules/graphics/demos");
end

参照


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