home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3896 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.4 KB

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