• 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: NSTask & curl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask & curl


  • Subject: Re: NSTask & curl
  • From: Andrew Farmer <email@hidden>
  • Date: Sat, 6 Jun 2009 15:53:05 -0700

On 6 Jun 2009, at 15:05, Ammar Ibrahim wrote:
On Sun, Jun 7, 2009 at 12:29 AM, Andrew Farmer <email@hidden> wrote:

Given downloadFilePath /foo/bar/baz, this'll create a file called " baz" -
with a leading space. Either use "-o%@" or use two separate arguments.

Thanks that fixed it! Although when you call it directly from the command
line, it's fine to have the space there!

No, it's not. Invoking NSTask with an argument like that is equivalent to typing:


curl -s "-o foo" http://url/


which is not equivalent to

curl -s -o foo http://url/
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTask & curl (From: Ammar Ibrahim <email@hidden>)
 >Re: NSTask & curl (From: Andrew Farmer <email@hidden>)
 >Re: NSTask & curl (From: Ammar Ibrahim <email@hidden>)

  • Prev by Date: Re: NSTask & curl
  • Next by Date: Re: highlighting menu item in main menu bar
  • Previous by thread: Re: NSTask & curl
  • Next by thread: Re: NSTask & curl
  • Index(es):
    • Date
    • Thread