curl-users
Re: How to handle service unavailable
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Jul 2008 15:36:25 +0200 (CEST)
Date: Fri, 11 Jul 2008 15:36:25 +0200 (CEST)
On Fri, 11 Jul 2008, What you get is Not what you see wrote:
>> They're in the "EXIT CODES" section in the man page. The '52' you seen
>> before is actually the exit code itself so your bash script would need to
>> check for that.
>
> I dont know how to read exit codes using bash. Should I look to stderr?
No, you should look for a tutorial on shell script programming.
Here's one: http://steve-parker.org/sh/exitcodes.shtml
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-07-11