Re: Another shell script query
Re: Another shell script query
- Subject: Re: Another shell script query
- From: garbanzito <email@hidden>
- Date: Wed, 5 Jun 2002 17:41:23 -0600
at 2002 06 05, 22:12 +0100, they whom i call Charles Arthur,
UKClimbing Editor wrote:
Why doesn't this work?
do shell script "curl --help"
(You can replace "curl" with most Unix things).
It works in the Terminal but from AS gives "execution error". I'm
suspecting that the output is not stdout but stderr, though I'm at a loss
as to how to deal with that.
that was a good guess, but it's actually that "curl --help"
for some reason has an exit status of 2, which "do shell
script" reasonably interprets as an error.
you'll see this in Terminal if you
curl --help
printf "$status\n"
i don't know offhand, but there's probably a way to subvert
the exit status and make AppleScript happy. however it
does seem like a bug in curl.
--
steve harley email@hidden
_______________________________________________
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.