Mailinglist Archive: opensuse-de (1962 mails)
| < Previous | Next > |
Re: Ping-Script-Frage
- From: Dominik Klein <dk@xxxxxxxxxxxxxxxx>
- Date: Wed, 2 Aug 2006 11:05:58 +0000 (UTC)
- Message-id: <44D08709.4080606@xxxxxxxxxxxxxxxx>
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.
| < Previous | Next > |