Hi,
kd5pbo, when you run that getconf ARG_MAX call you'll get 131072 and thats bytes max for all aguments plus environment, its not actual number of arguments you can pass directly.
In practice people solve this type of problem by passing the name of a configuration file on the command line and the program opens this file for reading to get the 20000 or so lines of data.
Edit: or pass it to the program on stdin
Last edited by randyding; 09-04-2006 at 08:31 PM.
|