Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Expect script running in cron(solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
linuxbum
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 131
Location: USA

PostPosted: Tue Feb 21, 2006 4:14 pm    Post subject: Expect script running in cron(solved) Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum