mentby.com
Blog | Jobs | Help | Signup | Login

Hey,

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.

Thanks,
Mark
--
Mark Jaffe
jaffe.mark*******
408-807-2093 (cell)
408-341-9263 (main)


Mark Jaffe Fri, 17 Feb 2012 17:09:59 -0800

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.


Greg Lindahl Fri, 17 Feb 2012 17:23:10 -0800



Related Topics

Post a Comment