pike has asked for the wisdom of the Perl Monks concerning the following question:
I have a script which partitions a large set of files into sets of approx. equal (byte) size and then executes a command for each of the sets using system. The problem I have now is that sometimes even the subsets are so large that I exceed the max. number of arguments the shell supports. I'd like to change this, but I can't find out what the max number of arguments is! Is there any variable / function / module to get this information?
OK, so this is more of a shell question than a perl question, but anyway....
Thanks,
pike
P.S.: I have to keep track how many commands I submitted, so using xargs is not an option...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: max number of arguments
by Zaxo (Archbishop) on Sep 05, 2002 at 09:02 UTC | |
by pike (Monk) on Sep 05, 2002 at 14:55 UTC | |
|
Re: max number of arguments
by PodMaster (Abbot) on Sep 05, 2002 at 09:02 UTC | |
|
Re: max number of arguments
by MZSanford (Curate) on Sep 05, 2002 at 15:41 UTC |