Re: NSTask failing
Re: NSTask failing
- Subject: Re: NSTask failing
- From: Nir Soffer <email@hidden>
- Date: Fri, 4 Apr 2008 23:56:59 +0300
On Apr 4, 2008, at 23:20, Randall Meadows wrote:
NSArray *args = [NSArray arrayWithObjects:
@"-cf",
[NSString stringWithFormat:@"\"%@\"", tarFilePath],
[NSString stringWithFormat:@"\"%@\"", plistPath],
nil];
Try:
NSArray *args = [NSArray arrayWithObjects:@"-cf", tarFilePath,
plistPath, nil];
You don't need to quote anything you feed to NSTask. Your code is
equivalent to this wrong shell script:
tar -cf "\"tarFilePath\"" "\"plistPath\""
Best Regards,
Nir Soffer
_______________________________________________
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