home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / wizards / 3312 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.2 KB  |  28 lines

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