Hi !
Using SuSE 6.1, I want to run "expect fetch" every 2 hours by cron. This
expect script runs wvdial, waits for the connection, runs fetchmail and
sendmail -q and hangs up.
When starting "expect fetch" manually, it all works fine. But when run by
cron, I get the following error message:
spawn wvdial
failed to get controlling terminal using TIOCSCTTYparent sync byte write:
broken pipe
I have no clue what this means. Any ideas ?
I know some things: wvdial writes to stderr, but calling "wvdial 2>&1"
doesn't work as wvdial takes 2>&1 as an option.
My crontab entry: 0 */2 * * * root expect fetch # (always run as root)
Thanks,
Sebastian
--
"No worries." - Rincewind.
Registered Linux user #137247 - mailto:[EMAIL PROTECTED]
PGP available - 5C70 0D48 70F8 2CB1 6AB7 4539 0E37 E3E1 61A7 BA87