Bug 263 - Expect fails from cron
Summary: Expect fails from cron
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tcltk
Version: 5.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1998-12-02 17:02 UTC by smathews
Modified: 2008-05-01 15:37 UTC (History)
0 users

Clone Of:
Last Closed: 1999-04-08 22:25:20 UTC

Attachments (Terms of Use)

Description smathews 1998-12-02 17:02:51 UTC
I have many scripts written in expect to do system
administration type stuff.  Scripts that invoke another
program with the 'spawn' command fail with:
failed to get controlling terminal using TIOCSCTTYparent:
sync byte write: broken pipe.

Comment 1 David Lawrence 1998-12-03 22:41:59 UTC
This bug has been assigned to a developer for further review.

Comment 2 Jeff Johnson 1999-04-08 22:25:59 UTC
Programs run from cron do not have a controlling tty.
You might try redirecting stdin and stdout explicitly to /dev/console
in the cron entry:
x x x x x x myscript < /dev/console > /dev/console

Note You need to log in before you can comment on or make changes to this bug.