Bug 263 - Expect fails from cron
Expect fails from cron
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: tcltk (Show other bugs)
5.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-12-02 12:02 EST by smathews
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-04-08 18:25:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description smathews 1998-12-02 12:02:51 EST
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 17:41:59 EST
This bug has been assigned to a developer for further review.
Comment 2 Jeff Johnson 1999-04-08 18:25:59 EDT
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.