Does anyone know how to use rsynch over ssh so that I can do it from a cron job? I use this script: #!/usr/bin/expect -f log_user 0 spawn /usr/bin/rsync -avP --delete --stats -l -t -e ssh \ user@somehost:/path/to/files /path/to/local expect "password: " send "secret\n" log_user 1 interact I'm no expert with expect (at all), but this works fine on the commandline when I manually issue it, but from a cronjob, all I get reported in my cron log is the password and the rsynch doesn't take place. I copied this from somewhere else (I forget), and it's really starting to bug me as I really want cron to handle this... any idea how I can do this better or at least make this run in a cronjob? Thanks. -- [EMAIL PROTECTED], OpenPGP key available on www.keyserver.net 1024D/FE6F2AFD 88D8 0D23 8D4B 3407 5BD7 66F9 2043 D0E5 FE6F 2AFD - Danen Consulting Services www.danen.net, www.freezer-burn.org - MandrakeSoft, Inc. www.linux-mandrake.com Current Linux uptime: 7 hours 27 minutes.
Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
