home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- 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
- From: subbarao@tex.Princeton.EDU (Kartik Subbarao)
- Subject: Re: Simulating keyboard input in interactive programs
- Message-ID: <1992Sep12.232424.14918@Princeton.EDU>
- Sender: news@Princeton.EDU (USENET News System)
- Nntp-Posting-Host: tex.princeton.edu
- Organization: Princeton University
- References: <joslin.716216242@c0223.ae.ge.com> <1992Sep11.142202.11116@Princeton.EDU> <BuHGrv.8yD@mentor.cc.purdue.edu>
- Date: Sat, 12 Sep 1992 23:24:24 GMT
- Lines: 19
-
- In article <BuHGrv.8yD@mentor.cc.purdue.edu> ahern@sage.cc.purdue.edu (Sean Ahern) writes:
-
- >subbarao@tex.Princeton.EDU wrote:
- >>Redirecting the output of echo to your tty simply writes the text 'ls' on
- >>your terminal. Just as if you said "echo thousandlineslong" > `tty`. It
- >>does NOT write to the input buffer of the tty. To do so, you can use the
- >>TIOCSTI ioctl if you have it.
- >
- >Using the command echo `ls` > `tty` might work, but again, does not solve
- >the basic problem that was addressed.
-
- Huh?? How `might' echoing the string "News bin files ftp lost+found mail"
- work, and how is it any different from echoing the string "ls" to your
- terminal?
-
- Once again, a plea for people to *TEST* their solutions before posting
- them falls on deaf ears.
-
- -Kartik
-