分类:
2008-11-26 18:38:24
在UNIX 中经常由于文件太多,进行rm 等的时候经常会出现如下错误.
find /OrderFulfill/*.* -mtime +1 -exec rm -f {} ;
ksh: /usr/bin/find: arg list too long
ksh: /usr/bin/rm: 0403-027 The parameter list is too long
解决方法:
) you can change the system default memory alocation
smitty System Environments
Change / Show Characteristics of Operating System
ARG/ENV list size in 4K byte blocks
you may put the value up to 256 if needed but be careful, in this case, all processes will alocate this quantity of memory. I used to change it for small periods to do cleaning scripts and put it back to it's default value after
"If you always do what you've always done, you will always be where you've always been."