Re: Max arguments for NSTask?
Re: Max arguments for NSTask?
- Subject: Re: Max arguments for NSTask?
- From: Charles Srstka <email@hidden>
- Date: Sun, 27 Oct 2002 13:23:13 -0600
On Sunday, October 27, 2002, at 12:59 PM, Scott Anguish wrote:
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.
Sounds great. I was hoping pax would have something like this, but I
couldn't find any mention in the man pages (and still can't).
Anyone know what flag would do this?
If it doesn't exist, xargs does look promising.
Thanks,
Charles
_______________________________________________
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.