Expect script does not work on crontab
>> On Tue, 13 Mar 2012 13:59:35 +0530,
>> Bilal mk <email@example.com> said:
B> The following script is working fine executing from shell. But does not
B> work running on crontab. How to fix this crontab issue?
B> spawn /usr/bin/rsync -avz --delete /var/app/ user@somedomain:/var/app/
B> expect "Password:"
B> send "somepassword
I believe the "interact" line is messing you up; when "expect" sees that,
it wants a terminal or PTY to play with, and cron doesn't give it one.
Karl Vogel I don't speak for the USAF or my company
I smile because I don't know what's going on. --bumper sticker
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
Archive: 20120313184717.E6D36BFE8@kev.msw.wpafb.af.mil">htt p://lists.debian.org/20120313184717.E6D36BFE8@kev.msw.wpafb.af.mil