Dave Dykstra <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 05, 2001 at 03:28:02PM -0400, eric.deandrea wrote:
> > i am running rsync from a shell script out of cron to transfer a module
> > between 2 solaris servers. I am getting the error "Argument too long". What
> > does that mean? 

I'd guess that Dave's guess at the spelling of the error message is what you
actually saw.

If so, it means exactly what Dave said - the command line is too long.
Do you have an '*' or other globber (as it were ;-) somewhere in that
rsync command line in the cron job?

> I can run the rsync command without a problem from the
> > command line.

Are you running it from the same directory as the cron job runs?
When you say above that you can run the rsync command by hand -
does the crontab have THAT command, or does it run a script?
Make sure you run exactly what the cron job does, where it does,
and see if you get the same result, then change things (different
place, different shell running the script) until you figure out
what makes it fail (and look for fileglobbing...)

>  Its only when the rsync command is started from inside the
> > shell script that I have the problem.

Are they being run under different shells?  (see above)

> ... I've only seen it when doing an exec of a program
> when the size of the argument list plus the size of the environment are
> larger than a system-defined limit.

(Now everyone knows why xargs was created! ;-)

rc


Rusty Carruth          Email:     [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621  SnailMail: Schlumberger ATE
FAX:   (480) 345-8793             7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2     Tempe, AZ 85284-1825
ICBM: 33 20' 44"N   111 53' 47"W

Reply via email to