Re: Max arguments for NSTask?
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.