• 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: Max arguments for NSTask?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Max arguments for NSTask?


  • Subject: Re: Max arguments for NSTask?
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 27 Oct 2002 13:59:09 -0500

On Sunday, October 27, 2002, at 01:37 PM, Charles Srstka wrote:

I'm finding that if I try to launch a process using NSTask with too many arguments, I get this:

*** NSTask: Task create for path /bin/pax failed: 7, "Argument list too long".

and my app promptly hangs with the dreaded pinwheel of death. So, my question is, what is the maximum number of arguments that NSTask can take? Is this documented anywhere? Is there a way around it?




The best way around it in this case would be to write the files that you want pax to pack up to a file,a nd then use the flag for pax that reads that list from the files.

There is a limit to the number of args (files usually) you can pass to a cli tool... that's why xargs exists (and that may be another option for you BTW..)
_______________________________________________
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: Max arguments for NSTask?
      • From: Charles Srstka <email@hidden>
References: 
 >Max arguments for NSTask? (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Max arguments for NSTask?
  • Next by Date: Re: Max arguments for NSTask?
  • Previous by thread: Re: Max arguments for NSTask?
  • Next by thread: Re: Max arguments for NSTask?
  • Index(es):
    • Date
    • Thread