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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

0403-027 The parameter list is too long 3

Status
Not open for further replies.

gatetec

MIS
Mar 22, 2007
420
US
I am doing rcp -p across nodes, and getting this:

ksh: /usr/bin/rcp: 0403-027 The parameter list is too long.

What is the issue?

thx much
 
It means your parameter list is too long. :)

Kornshell has a command line length limit of 2048 characters (notice that it's ksh that's complaining, not rcp). You are apparently using a wildcard specification for filenames that expands beyond that limit. To verify this, do an ls with the same arguments you tried to give rcp (i.e. ls * ). You should get the same error.

You'll need to break the task down into multiple rcp invocations with small enough parameter lists, or use a combination of the find and xargs commands.

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

A Simple Code for Posting on the Web
 
Rod is right!

A work around of this is to use the backup and restore commands or tar command (one to backup and the other to restore)

Try this:

First you have to be in the destination directory on the destination machine and then do that:

ssh source_machine 'cd /path_of_data; find . -print | backup -ivqf -' | restore -xpvqf -

I always use this command for long listing.

Regards,
Khalid
 
The best issue for this type of problem is to temporary incerase the memory allocation for processes:

In smit System Environments

Change / Show Characteristics of Operating System
have a look to

ARG/ENV list size in 4K byte blocks

as far as i remember it's set to 6 by default

increase this value for the action you want and put it back to it's original value after.
 
Oh in your case i don't think you are trying to do that with the ssh?! so you can still do the same with rsh (as i assume you have the .rhosts set up already)

Code:
rsh source_machine 'cd /path_of_data; find . -print | backup -ivqf -' | restore -xpvqf -

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top