From: Andreas Hoeschler (ahoesch@smartsoft.de)
Date: Wed Mar 12 2003 - 17:08:54 EST
Hi all,
I have written the following script /opt/UploadIP/bin/uploadFile:
#!/usr/local/bin/expect
set timeout -1
spawn rsync -avz -e ssh remoteIP <some user>@<some server>:<some dir>
expect "assword: "
send "...\r"
expect "speedup is"
sleep 1
If I execute this script on the command line as root it works perfectly.
If I put the following line in "crontab -e"
* * * * * /opt/UploadIP/bin/uploadFile
I get the following mail:
Your "cron" job on merkur
/opt/UploadIP/bin/uploadFile
produced the following output:
spawn rsync -avz -e ssh remoteIP <some user>@<some server>:<some dir>
couldn't execute "rsync": no such file or directory
while executing
"spawn rsync -avz -e ssh remoteIP <some user>@<some server>:<some
dir> "
(file "/opt/UploadIP/bin/uploadFile" line 3)
Any idea why this fails?
Thanks,
Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:58 EDT