Re: Expect script does not work on crontab

2012-03-13 Thread Karl Vogel
>> On Tue, 13 Mar 2012 13:59:35 +0530, >> Bilal mk 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> #!/usr/bin/expect B> spawn /usr/bin/rsync -avz --delete /var/app/ user@somedomain:/var/app/ B>

Re: Expect script does not work on crontab

2012-03-13 Thread Claudius Hubig
Hello Bilal, Bilal mk wrote: > The following script is working fine executing from shell. But does not > work running on crontab. > > How to fix this crontab issue? Check the output of $ env when run in the crontab and in the shell. Best regards, Claudius -- BOFH excuse #353: Second-syste

Expect script does not work on crontab

2012-03-13 Thread Bilal mk
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 "Pa