home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!c0223!joslin
- From: joslin_paul@ae.ge.com
- Newsgroups: comp.unix.shell
- Subject: Re: Simulating keyboard input in interactive programs
- Message-ID: <joslin.716216242@c0223.ae.ge.com>
- Date: 11 Sep 92 12:57:22 GMT
- References: <1992Sep9.045525.2667@ads.com> <1992Sep10.163557.10186@siesoft.co.uk>
- Sender: usenet@crd.ge.com (Required for NNTP)
- Reply-To: joslin_paul@ae.ge.com
- Distribution: na
- Organization: GE Aircraft Engines
- Lines: 31
- Originator: news@c0228.ae.ge.com
- Nntp-Posting-Host: 129.202.2.241
-
- >pdel@ADS.COM (Peter Delevoryas) writes:
- >: #2
- >: This is kind of related to #1. Our dial-in lines are set to
- >: auto-log out after about 20 min. of inactivity. Short of
- >: programming the terminal-server not to do this, how can I
- >: keep a process going so that it always seems like I'm doing
- >: something, even if I'm in the kitchen making a BLT (extra mayo).
- >: Just starting up some kind of loop won't do it; it has to be
- >: equal to a keypress from MY keyboard.
-
- Two quick thoughts:
-
- If you're using a pc at home, what about a TSR that puts a "space-CR"
- in the keyboard buffer every five minutes?
-
- Second, have you tried something like
-
- while :
- do
- sleep 3600
- echo "ls" > `tty`
- done
-
- where `tty` returns the tty device your shell is using.
- --
- --
- Paul R. Joslin |Dan Quayle's Top 10 TV complaints:
- joslin@c0223.ae.ge.com | 10. Nobody ever "beams up" William Shatner on
- +1 513 583 3537 | Rescue 911.
-