Computing.Net > Forums > Unix > rsync, expect & cron

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

rsync, expect & cron

Reply to Message Icon

Name: pesz1
Date: October 11, 2007 at 13:17:55 Pacific
OS: CentOS
CPU/Ram: 2g
Product: HP
Comment:

Hi,

I am using expect to run rsync over ssh (I know I can use keys but I am not for a few other reasons). The file I created works perfect when I run it from the command line. However, when I add it to the cron, it stops at:
expect "password:\r"

The send is never executed.

Anyone have any ideas?

Thanks for all your help in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: japh
Date: October 24, 2007 at 01:24:32 Pacific
Reply:

When you start the script from cron, there is noone to answer the question for the password. You should use a private/public key pair WITHOUT a password. Note that this creates a security hole, so make sure that nobody can read your private key.

This message was produced with 100% recycled electrons


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: rsync, expect & cron

cron/scp/expect Problem www.computing.net/answers/unix/cronscpexpect-problem/5307.html

Unix Backup Cron using CPIO www.computing.net/answers/unix/unix-backup-cron-using-cpio/6757.html

how to execute a expect script www.computing.net/answers/unix/how-to-execute-a-expect-script/5382.html