home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10385 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  938 b 

  1. From: sk@hpcupt3.cup.hp.com (S Kandasamy)
  2. Date: Tue, 25 Aug 1992 16:38:41 GMT
  3. Subject: Re: repeated process execution?
  4. Message-ID: <118390008@hpcupt3.cup.hp.com>
  5. Organization: Hewlett Packard, Cupertino
  6. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscdc!hplextra!hpcc05!hpcuhb!hpcupt3!sk
  7. Newsgroups: comp.unix.questions
  8. References: <1992Aug24.091502.1@vax.sonoma.edu>
  9. Lines: 23
  10.  
  11. / hpcupt3:comp.unix.questions / mccalld@vax.sonoma.edu / 10:15 am  Aug 24, 1992 /
  12. Greetings:
  13.      I would like to have a script file execute at my terminal over
  14. and over again but pause every x number of seconds between reexecuting
  15. and permit a keypress assignment to abort the process.......
  16. Could someone lead me to the magic command(s).....
  17. thanks
  18. mac
  19. ----------
  20.  
  21. Very simple Try this,
  22.  
  23. while :
  24. do
  25. sleep 30
  26. myprog
  27. done
  28.  
  29. To abort this press the interrupt character. This script runs myprog after
  30. every 30 secs.
  31.  
  32. Have fun,
  33. SK.
  34.