[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Need a bit of help with bash.
- Subject: [ale] Need a bit of help with bash.
- From: pete.hardie at gmail.com (Pete Hardie)
- Date: Thu, 10 Feb 2011 13:37:21 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
On Thu, Feb 10, 2011 at 13:20, Chuck Payne <terrorpup at gmail.com> wrote:
> Guys,
>
> I have a script that does a wget, but if a server is not responing,
> the the script deads. What is the best way to say if host x doesn't
> return a value after 10 sec to stop. ?I seen several example of
> timeout function, but it looks I need to write a pid is that true?
>
>
I've seen this handled by running a ping to the IP first, since ping
has a timeout
value already. It assumes that successful ping will mean successful wget, but
it might be a start
--
Pete Hardie
--------
Better Living Through Bitmaps