Bug 22273 - watch does not redirect program's input
watch does not redirect program's input
Product: Red Hat Linux
Classification: Retired
Component: procps (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Daniel Walsh
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2000-12-13 19:14 EST by Aleksey Nogin
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-11 07:31:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Aleksey Nogin 2000-12-13 19:14:42 EST
When I run "watch program" and a program decides to talk to me and wait for
input, watch just hangs (without displaying any output at all). Watch
should probably redirect the stdin from /dev/null or do something similar
to prevent such situation.

I have procps-2.0.6-5, glibc-2.1.3-21, and kernel 2.2.16 installed of RH
6.2 system
Comment 1 Preston Brown 2001-02-01 15:34:47 EST
watch isn't designed for use with that sort of program.  Don't do that.
Comment 2 Aleksey Nogin 2001-02-01 16:45:06 EST
I was doing "watch make" and it turned out that while it normally works, in some
cases make would run latex and latex would ask for input when there is a bug. 

In any case, since watch can not do anything reasonable anyway when the watch'ed
program wants input, why not redirect the input? It definitely wouldn't make
things worse, but it can make things better.
Comment 3 Daniel Walsh 2004-02-11 07:31:42 EST
Closed stdin and reassigned to /dev/null.


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