Problem
When using a command with a wild card on a directory with a large number of files and/or sub-directories, I get the error "arg list too long."
Cause
ARG_MAX, by default, is configured to 32768. The number of files
listed will depend on the utility being used, for example, "lf" will
'handle' more files than "rm". Another dependancy will be the
number of characters in each filename passed as arguments. Solution
Increase the current value of ARG_MAX to its limit.
For OpenServer 6 and UnixWare7 it is 1048576.
To check the current setting as root run:
# /etc/conf/bin/idtune -g ARG_MAXTo increase the value as root run# /etc/conf/bin/idtune ARG_MAX 1048576Rebuild the kernel with# /etc/conf/bin/idbuild -Band reboot.NOTES: The OpenServer5 equivalent for this command is detailed at:TA105076, "table_grow - exec data table page limit of 25 pages (MAXEXECARGS) exceeded."