home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!csa!kibirev
- From: kibirev@csa.bu.edu (oleg kibirev)
- Subject: Detecting program input
- Organization: Computer Science Department, Boston University, Boston, MA, USA
- Originator: kibirev@csa
- Message-ID: <1992Jul26.003956.26389@ctr.columbia.edu>
- Sender: news@ctr.columbia.edu (The Daily Lose)
- Date: Sun, 26 Jul 1992 00:39:56 GMT
- X-Posted-From: csa.bu.edu
- X-Posted-Through: sol.ctr.columbia.edu
- Lines: 14
-
-
- I am writing a program that allows one to access their host through e-mail only.
- One thing I need to do is determining when shell or it's child attached to the slave
- side of pty/tty pair has read everything written to tty and wants more input (ie is
- blocked in read call). Also, I need to know myself that all output of this process is
- already delivered to me. The idea is that user passes a few commands to the session, gets
- program's response for this command and then sends more input.
-
- I can't figure out how to detect input on the other side of pseudo terminal. Since I have
- no control over what program is executing here, I can't expect it's cooperation. Hope that
- some wizard can e-mail or post the solution (or better way of doing the main job).
-
- Oleg Kibirev
-
-