Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error: parameter list is too long

Status
Not open for further replies.

thepallace

Technical User
Joined
Jun 8, 2004
Messages
48
Location
US
I'm getting this error when moving files. Is there a buffer parmater that we can adjust on our AIX inorder for DBA to move 1700+ files to a different directory. Is there a fix on this. Pls advise.

oracle@janus: [ /mv3/oracle/admin/ROAM/arch_applied ]
ECAS01 $ mv *gz /sv7/arch_applied/ROAM/
ksh: /usr/bin/mv: 0403-027 The parameter list is too long.
oracle@janus: [ /mv3/oracle/admin/ROAM/arch_applied ]
ECAS01 $ ls -l | wc -l
1724

oracle@janus:


Thanks,
JA


 
Hi,
use xargs command.
Regards
 
Code:
ls | while read FILENAME
do
  if ["${FILENAME}" != "${FILENAME%gz}" ]
  then
    mv "${FILENAME}" /sv7/arch_applied/ROAM/
  fi
done

or, if there aren't any subdirectories (or no chance of "*gz" files in any subdirectories):

Code:
find . -name '*gz' -exec mv {} /sv7/arch_applied/ROAM/ \;

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
As mentioned above, I too pipe things into a while read loop. However, you can adjust the ARG/ENV list. Here are the steps:

smitty
System Environments
Change / Show Characteristics of Operating System
ARG/ENV list size in 4K byte blocks [6]

Be careful because setting it too high can constrain system resources.

Regards,

Jarrett
IBM Certified Systems Expert pSeries HACMP for AIX
IBM Certified Advanced Technical Expert for AIX 5L and pSeries
- AIX 5L Systems Administration
- AIX 5L Performance and System Tuning
- p690 Technical Support
- pSeries HACMP for AIX

 
another suggestion, maybe just mv the dir? maybe not what you want.

mv /mv3/oracle/admin/ROAM/arch_applied /sv7/arch_applied/ROAM/

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top