17 Feb
2003
17 Feb
'03
13:34
Werner Schalk wrote:
Befehl "traceroute www.bla.de > traceroute_ergebnis 2>&1 &" auf und mein Progrämmchen läuft weiter. Gibt es irgendwie eine Möglichkeit, den Ablauf des Skriptes soweit anzuhalten, bis der Traceroute entweder einen Fehler lieferte oder vollständig durchgelaufen ist?
man bash: Special Parameters ! Expands to the process ID of the most recently executed background (asynchronous) command. BASH BUILTINS: wait [n] Wait for the specified process and report its termination status. Also: $TRACEROUTE trpid = $! .... wait $trpid Peter