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
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"
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
Summary: I've got an expect script that is run through cron everynight that is supposed to secure copy a few files from a different server as well as do a few other things. I can't use ssh-agent because I hav...