rsync got terminated when called from expect script

Solution Verified - Updated -

Issue

We have rsync solution, rsync daemon is configured on destination server, cron job with shell script (calling the expect script to supply password to rsync command) is set up on client side.

It is observed, that rsync gets terminated when file size exceeds approx. 150MB when running the script from cron or commandline.

But when we run rsync directly

rsync -av --stats <source-dir> <target-dir>

the task succeeds regardless of the file size.

Are there any limitation of expect program launching rsync or any suggestions to solve the issue?

Environment

Red Hat Enterprise Linux (RHEL) 5.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.