Scilab 6.0.0
Scilabヘルプ >> Input/Output functions > unix_w
unix_w
シェル (sh) コマンドを実行, 出力をScilabウインドウにリダイレクトする
呼び出し手順
unix_w(cmd)
パラメータ
- cmd
文字列
説明
shシェルで実行する文字列 cmd
を Unixに送信します .
標準出力はScilabウインドウにリダイレクトされます.
Unix実行エラーはトラップされます; *注意*
コマンドのリストを ";" で区切った場合,
最後のシェルコマンドエラーのみが
リポートされます.これは推奨されません.
例
if getos() == 'Windows' then unix_w("dir "+'""'+WSCI+"\modules"+'""'); else unix_w("ls $SCI/modules"); end
Comments
Add a comment:
Please login to comment this page.