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

Fixed In Version:
Clone Of:
Environment:
Last Closed: 1999-04-08 22:25:20 UTC
Embargoed:


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.