2 Aug
2006
2 Aug
'06
11:05
Mein Problem ist nun, wenn der Ping scheitert. Dann läuft meine Schleife nicht weiter. Wie könnte ich das abfangen?
man ping -w deadline Specify a timeout, in seconds, before ping exits regardless of how many packets have been sent or received. In this case ping does not stop after count packet are sent, it waits either for deadline expire or until count probes are answered or for some error notification from network. -W timeout Time to wait for a response, in seconds. The option affects only timeout in absense of any responses, otherwise ping waits for two RTTs.