Mathematica > 外部プログラムの呼出し >

RunThrough

RunThrough["command", expr]
外部コマンドを実行し,expr の出力形式を入力として与え,その出力をMathematica の入力として読み込み,結果を返す.
  • RunThroughは,exprInputFormcommand の標準入力に書き出して,その標準出力を読み込み,Mathematica に入力する.
  • RunThroughは,command を起動して,command に入力を与え,入力を終了する.
Mathematica カーネルをテキストモードで実行し,結果を一時的な出力ファイルに入れる:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
結果はファイルに入っている:
この一時的なファイルを削除する:
In[5]:=
Click for copyable input
バージョン 1 の新機能
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team