(1) SOLARIS
i got one idea/solution about (in Solaris) for ls (ls -lrt) to handle more files (max limit is 1MB, defined in ARG_MAX in limits.h and NCARGS in sys/param.h) .
if you do ls *.conv it will give bash: /usr/bin/ls: Arg list too long
one solution:
script level : find . -type f -name "*conv\"
C codelevel :
{
sprintf(cmd,"find . -type f -name \"Aricent*\" "); //you can use -prune not to look into subdirectories
system(cmd);
}
(2) AIX : AIX we have smitty tool to tune ARG/ENV list parameter at run time to solve ls *pattern issue.
Please share your ideas if any (Even tcl script).
i got one idea/solution about (in Solaris) for ls (ls -lrt) to handle more files (max limit is 1MB, defined in ARG_MAX in limits.h and NCARGS in sys/param.h) .
one solution:
script level : find . -type f -name "*conv\"
C codelevel :
{
sprintf(cmd,"find . -type f -name \"Aricent*\" "); //you can use -prune not to look into subdirectories
system(cmd);
}
(2) AIX : AIX we have smitty tool to tune ARG/ENV list parameter at run time to solve ls *pattern issue.
Please share your ideas if any (Even tcl script).
No comments :
Post a Comment