curl-users
Re: Exit Codes?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 24 May 2006 23:04:19 +0200 (CEST)
Date: Wed, 24 May 2006 23:04:19 +0200 (CEST)
On Wed, 24 May 2006, Art Norman wrote:
> The only time I have seen the numerical "exit code" is when I use the
> verbose option.
$ curl this.doesnt.exist
curl: (6) Couldn't resolve host 'this.doesnt.exist'
$ echo $?
6
IOW, curl returns the exit code just like any other ordinary command line
tool.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-05-24