• 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: "curl -x" and do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "curl -x" and do shell script


  • Subject: Re: "curl -x" and do shell script
  • From: Bernardo Hoehl <email@hidden>
  • Date: Tue, 6 Jul 2004 08:28:20 -0300

I have experienced the same problem with curl sometimes.

Try doing this:


1) Make a shell script with you curl comand.

2) call the shell script from the applescript statement, like "do shell script "path_to_shell_script"

Has worked for me a few times....

=====================


On 06/07/2004, at 04:33, jj wrote:

Hi all!

I'm experimenting odd behaviours trying to get a page through a proxy using
"curl" and "do shell script".

The shell script works fine in the Terminal. However, when run from
applescript, it returns an error:

##########################################
do shell script "curl -x " & proxy & space & theUrl

--> ERROR
--> curl: option -x requires an extra argument!
--> curl: try 'curl --help' for more information
##########################################

Variables "proxy" ("80.80.80.80:80") and "theUrl" ("http://www.foo.bar/";)
are OK. As I told you, it works fine in a Terminal window.

Any idea what's going on?


jj

--
http://www.macscripter.net/
http://www.osaxen.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.
_______________________________________________
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: 
 >"curl -x" and do shell script (From: jj <email@hidden>)

  • Prev by Date: Re: Suggestions for modifying read_parse
  • Next by Date: Re: "curl -x" and do shell script
  • Previous by thread: Re: "curl -x" and do shell script
  • Next by thread: Re: "curl -x" and do shell script
  • Index(es):
    • Date
    • Thread