Re: To err on the exit code of the FIRST cmd of a piped do shell script
Re: To err on the exit code of the FIRST cmd of a piped do shell script
- Subject: Re: To err on the exit code of the FIRST cmd of a piped do shell script
- From: Deivy Petrescu <email@hidden>
- Date: Mon, 8 Dec 2003 19:58:31 -0500
That option has got nothing to do with the problem to be solved!
It only affects behavior on server errors (in
practice http return code 404)in which case curl
will error with code 22 rather than downloading
the error file. Having a pipe afterwards,
however, will, as with all other curl errors,
"hide" the error since the exit code to 'do
shell script' is that of 'vis'.
--heb
I misread your question, and since I am working
with curl and using -f option to get rid of the
wasted time reading errors, I jumped the gun.
When I reread the original message , I understood what you meant and wanted.
I liked the question!
As I was trying to solve it , in vain; I should
add, Chris posted the solution and it works
greatly.
Since I am not piping my curls right now, it is
not that important right away, but for the
gateway it opens, thank you very much Chris.
--
Regards
Saudagues
Deivy
http://www.dicas.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.