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+
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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.