Skip to content

system_callSystemCallSystemCallsystem_callsystem_call🔗

説明🔗

system_callSystemCallSystemCallsystem_callsystem_call — システムコマンドを実行する。

書式🔗

system_call( string Command )void SystemCall( const HTuple& Command )static void HOperatorSet.SystemCall( HTuple command )def system_call( command: str ) -> None

Herror system_call( const char* Command )

Herror T_system_call( const Htuple Command )

static void HSystem::SystemCall( const HString& Command )

static void HSystem::SystemCall( const char* Command )

static void HSystem::SystemCall( const wchar_t* Command ) (Windows only)

static void HSystem.SystemCall( string command )

説明🔗

オペレーター system_callSystemCall は Commandcommandcommand (C-プロシー ジャ “system”)によって指定された文字列によるシステムコマンドを 実行します。 文字列が空であるならば、対話的なシェルを開始します(’csh -i’)。

Windowsオペレーティングシステムでは、'start /b'"start /b"を前に付けることで、 起動したアプリケーションの待ちを回避することが可能です。 Unix 系オペレーティングシステムでは、Commandcommandcommandが空の文字列である場合、 対話シェル (‘csh -i’)がスタートされます。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

Commandcommandcommand (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

システムによって呼ばれるコマンド

初期値: 'ls'"ls"

結果🔗

Windowsオペレーティングシステムでは、 新しいプロセスの生成に問題が発生しなければ、 system_callSystemCallオペレータは常に2 (H_MSG_TRUE)をかえします。 他のオペレーティングシステムでは、system_callSystemCallは常に2 (H_MSG_TRUE)を返します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

count_secondsCountSeconds

関連項目

wait_secondsWaitSeconds, count_secondsCountSeconds

モジュール🔗

Foundation