[ale] Need a bit of help with bash.

Chuck Payne terrorpup at gmail.com
Thu Feb 10 15:28:34 EST 2011


On Thu, Feb 10, 2011 at 2:06 PM, Lightner, Jeff <jlightner at water.com> wrote:
> Am I missing something?   Wget has --timeout and other timeout options available.   Are you saying those don't work?
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Pete Hardie
> Sent: Thursday, February 10, 2011 1:37 PM
> To: Atlanta Linux Enthusiasts
> Subject: Re: [ale] Need a bit of help with bash.
>
> 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
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>

I didn't know about the time out flag, I am looking to see see if the
--connect-timeout is what I need. Thanks guys.

-- 
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.



More information about the Ale mailing list