• 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: "-exec ..." in NSTask ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: "-exec ..." in NSTask ?
      • From: Zeno Crivelli <email@hidden>
  • Prev by Date: Re: Core dumps on MacOS X
  • Next by Date: Re: Apple Icons
  • Previous by thread: Re: "-exec ..." in NSTask ?
  • Next by thread: Re: "-exec ..." in NSTask ?
  • Index(es):
    • Date
    • Thread