RE: "-exec ..." in NSTask ?
RE: "-exec ..." in NSTask ?
- Subject: RE: "-exec ..." in NSTask ?
- From: Michael Kelly <email@hidden>
- Date: Fri, 13 Jun 2003 10:36:13 -0400
>
[theTask setLaunchPath:@"/usr/bin/find"];
>
[theTask setArguments:[NSArray
>
arrayWithObjects:
>
@"/Users/matt",
>
@"-name",
>
@"*.txt",
>
@"-exec",
>
@"rm",
>
@"-f",
>
@"{}",
>
@"\\;",
>
nil]];
There shouldn't be any need to escape the semi-colon, given that you're not
using a shell. Try @";" instead of @"\\;".
-Mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.