Hello,

The following script is working fine executing from shell. But does not
work running on crontab.

How to fix this crontab issue?


############################################################
#!/usr/bin/expect
spawn /usr/bin/rsync -avz --delete /var/app/ user@somedomain:/var/app/
expect "Password:"
send "somepassword\r"
interact
#############################################################


Thanks

Reply via email to