linuxbum Tux's lil' helper
Joined: 20 Dec 2003 Posts: 131 Location: USA
|
Posted: Tue Feb 21, 2006 4:14 pm Post subject: Expect script running in cron(solved) |
|
|
Hey has anybody tried expect script in cronjob?
The script runs fine from a commnad line.
But in Cron it hangs and never ends.
I see two process start with cronjob one say /bin/sh -c normal cron
and one with the expect script but the second never ends and nothing is transfered.
Well googleing shows that I need some special work do to cron not passing shell and env.
Cron requires all env variables to be set before it will work.
set env(TERM) vt100
set env(Shell) /bin/bash
Plus close the sapwn_id at end of the script.
help my problem there are many other variables that you might need.
Thanks for any ideas
Bryan |
|