Skip navigation.
 
mlRe: Max arguments for NSTask?
FROM : Charles Srstka
DATE : Sun Oct 27 20:23:13 2002

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlMax arguments for NSTask? Charles Srstka Oct 27, 19:37
mlRe: Max arguments for NSTask? Nicholas Riley Oct 27, 19:53
mlRe: Max arguments for NSTask? Scott Anguish Oct 27, 19:59
mlRe: Max arguments for NSTask? Finlay Dobbie Oct 27, 19:59
mlRe: Max arguments for NSTask? Finlay Dobbie Oct 27, 20:10
mlRe: Max arguments for NSTask? Charles Srstka Oct 27, 20:23
mlRe: Max arguments for NSTask? Scott Anguish Oct 27, 22:01
mlRe: Max arguments for NSTask? Charles Srstka Oct 27, 22:33
mlRe: Max arguments for NSTask? Scott Anguish Oct 27, 22:35
mlRe: Max arguments for NSTask? Chris Hanson Oct 27, 23:14
mlRe: Max arguments for NSTask? Nicholas Riley Oct 27, 23:59
mlRe: Max arguments for NSTask? Mark Levin Oct 28, 00:23
mlRe: Max arguments for NSTask? Charles Srstka Oct 28, 03:28
mlRe: Max arguments for NSTask? Chris Hanson Oct 28, 08:14
mlRe: Max arguments for NSTask? Hasan Diwan Oct 28, 17:31