ITEM: S4419L
0403-027: parameter list is too long.
Env:
AIX 3.2.5
Desc:
Customer is trying to remove files with the rm command
using wildcards (pattern matching). The command is
failing with:
0403-027: parameter list is too long.
Action:
This is due to a permanent restriction with the
environment space.
The parameter list size is limited to 24K and is
found in the /usr/include/sys/limits.h file as ARG_MAX:
\#define ARG_MAX 24576
/* max length of arguments for exec() in bytes,
including environ data, >= 4096 */
The wildcard is causing the buffer to fill up.
This script should work to rm the files:
\#!/usr/bin/ksh
for i in `ls | grep search_string`
do
rm $i
done
The following find command with wildcards should also work:
find . -name "*search_string*" -exec rm {} \\;
Support Line: 0403-027: parameter list is too long. ITEM: S4419L
Dated: April 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:36
Comments or suggestions?
Contact us