• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: To err on the exit code of the FIRST cmd of a piped do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >RE: Simple substring help (From: Michelle Steiner <email@hidden>)
 >To err on the exit code of the FIRST cmd of a piped do shell script (From: Harald E Brandt <email@hidden>)
 >Re: To err on the exit code of the FIRST cmd of a piped do shell script (From: Deivy Petrescu <email@hidden>)
 >Re: To err on the exit code of the FIRST cmd of a piped do shell script (From: Harald E Brandt <email@hidden>)

  • Prev by Date: Re: To err on the exit code of the FIRST cmd of a piped do shell script
  • Next by Date: Re: Folder actions query
  • Previous by thread: Re: To err on the exit code of the FIRST cmd of a piped do shell script
  • Next by thread: Re: To err on the exit code of the FIRST cmd of a piped do shell script
  • Index(es):
    • Date
    • Thread