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

Re: do shell script, curl and cookies


  • Subject: Re: do shell script, curl and cookies
  • From: Axel Luttgens <email@hidden>
  • Date: Fri, 12 Apr 2013 08:31:15 +0200

Le 11 avr. 2013 à 16:14, Håvard Graudo a écrit :

> [...]
> This works in Terminal:
> [...]
> curl --cookie zecookie.txt  'http://www.example.com/search?q=something'
> --> returns my search. all nice and dandy
> [...]
> However if I do the SAME THING using 'do shell script' it fails:
> [...]
> do shell script "curl --cookie zecookie.txt  'http://www.example.com/search?q=ssomething'"
> -- NOT LOGGED IN
>
> What works in Terminal does not with 'do shell script'.

Hello Håvard,

It seems you are assuming your cookie file to be in the current working directory.
In he case of a shell run from AppleScript, that directory isn't necessarily the expected one (currently, it seems to default to "/").
Could you try by specifying the full path of file "zecookie.txt" in your "do shell script" commands?

Axel



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: do shell script, curl and cookies
      • From: Axel Luttgens <email@hidden>
References: 
 >do shell script, curl and cookies (From: Håvard Graudo <email@hidden>)

  • Prev by Date: Re: duplicate command
  • Next by Date: Re: do shell script, curl and cookies
  • Previous by thread: Re: do shell script, curl and cookies
  • Next by thread: Re: do shell script, curl and cookies
  • Index(es):
    • Date
    • Thread