system_callsystem_callSystemCallSystemCallsystem_call (Operator)
Name
system_callsystem_callSystemCallSystemCallsystem_call — Ausführen eines Systemaufrufs.
Signatur
Herror system_call(const char* Command)
Herror T_system_call(const Htuple Command)
def system_call(command: str) -> None
Beschreibung
system_callsystem_callSystemCallSystemCallSystemCallsystem_call führt den in CommandCommandCommandCommandcommandcommand übergebenen Systemaufruf
aus.
Unter Windows kann durch ein Voranstellen von 'start /b'"start /b""start /b""start /b""start /b""start /b" erreicht
werden, dass nicht auf die gestartete Applikation gewartet wird.
Unter unixartigen Systemen kann eine interaktive Shell ('csh -i') gestartet werden,
indem ein leerer String in CommandCommandCommandCommandcommandcommand übergeben wird.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
CommandCommandCommandCommandcommandcommand (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Befehl für das Betriebssystem.
Defaultwert:
'ls'
"ls"
"ls"
"ls"
"ls"
"ls"
Ergebnis
Unter Windows liefert system_callsystem_callSystemCallSystemCallSystemCallsystem_call immer den Wert 2 (H_MSG_TRUE), außer es
gab ein Problem beim Erzeugen des neuen Prozesses.
Unter anderen Betriebssystemen liefert system_callsystem_callSystemCallSystemCallSystemCallsystem_call immer den Wert
2 (H_MSG_TRUE) zurück.
Vorgänger
count_secondscount_secondsCountSecondsCountSecondsCountSecondscount_seconds
Siehe auch
wait_secondswait_secondsWaitSecondsWaitSecondsWaitSecondswait_seconds,
count_secondscount_secondsCountSecondsCountSecondsCountSecondscount_seconds
Modul
Foundation