AIX6 arg list too long

本文介绍了如何解决使用rm命令删除特定文件时遇到的报错问题,特别是在AIX系统中调整ARG/ENV列表大小的方法,并提供了一个简单的脚本示例。

如题,rm -rf * find . -type f -name *.req  .....等等报错


This is caused by build systems that use wildcards or even ebuilds that have no issues on a normal GNU/Linux system. To work around this, you need to change the ARG/ENV list size in 4K byte blocks. The default value in AIX 5.x is 6. This is way too small. You will either need root access or kindly ask your system administrator to change this value. To change it, you have two options: use smitty (a curses sys-admin tool on AIX) or do root# chdev -l sys0 -a ncargs=40 on the command line

If you use smitty, you are looking for this:

root# smitty
=> System Environments
    => Change / Show Characteristics of Operating System
         ARG/ENV list size in 4K byte blocks                [40]

直接写个脚本就行了,难得折腾如

vi delete.sh

for i in /data/u01/applprod/inst/apps/PRODOK_lbq/logs/appl/conc/log/*.req
do
 rm -rf $i
done

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值