home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3926 < prev    next >
Encoding:
Text File  |  1992-09-12  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!tex.Princeton.EDU!subbarao
  3. From: subbarao@tex.Princeton.EDU (Kartik Subbarao)
  4. Subject: Re: Simulating keyboard input in interactive programs
  5. Message-ID: <1992Sep12.232424.14918@Princeton.EDU>
  6. Sender: news@Princeton.EDU (USENET News System)
  7. Nntp-Posting-Host: tex.princeton.edu
  8. Organization: Princeton University
  9. References: <joslin.716216242@c0223.ae.ge.com> <1992Sep11.142202.11116@Princeton.EDU> <BuHGrv.8yD@mentor.cc.purdue.edu>
  10. Date: Sat, 12 Sep 1992 23:24:24 GMT
  11. Lines: 19
  12.  
  13. In article <BuHGrv.8yD@mentor.cc.purdue.edu> ahern@sage.cc.purdue.edu (Sean Ahern) writes:
  14.  
  15. >subbarao@tex.Princeton.EDU wrote:
  16. >>Redirecting the output of echo to your tty simply writes the text 'ls' on
  17. >>your terminal. Just as if you said "echo thousandlineslong" > `tty`. It
  18. >>does NOT write to the input buffer of the tty. To do so, you can use the 
  19. >>TIOCSTI ioctl if you have it.
  20. >
  21. >Using the command echo `ls` > `tty` might work, but again, does not solve
  22. >the basic problem that was addressed.
  23.  
  24. Huh?? How `might' echoing the string "News bin files ftp lost+found mail"
  25. work, and how is it any different from echoing the string "ls" to your
  26. terminal?
  27.  
  28.     Once again, a plea for people to *TEST* their solutions before posting
  29. them falls on deaf ears.
  30.  
  31.     -Kartik
  32.