Anyone tried running expect scripts in cron tasks? I am faced with this in order to manage automated deployments from CI. Stymied right now because the expect script exits without doing anything when in a cron env. I can provide detailed explanation in private email exchange.
The cron environment is somewhat hostile -- it has a restricted path,
and many other environment variables aren't present. Try running
printenv as a cronjob, and then dumb down your interactive environment
to the same env variable configuration, and the problem will probably
leap out at you.