home *** CD-ROM | disk | FTP | other *** search
- From: sk@hpcupt3.cup.hp.com (S Kandasamy)
- Date: Tue, 25 Aug 1992 16:38:41 GMT
- Subject: Re: repeated process execution?
- Message-ID: <118390008@hpcupt3.cup.hp.com>
- Organization: Hewlett Packard, Cupertino
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscdc!hplextra!hpcc05!hpcuhb!hpcupt3!sk
- Newsgroups: comp.unix.questions
- References: <1992Aug24.091502.1@vax.sonoma.edu>
- Lines: 23
-
- / hpcupt3:comp.unix.questions / mccalld@vax.sonoma.edu / 10:15 am Aug 24, 1992 /
- Greetings:
- I would like to have a script file execute at my terminal over
- and over again but pause every x number of seconds between reexecuting
- and permit a keypress assignment to abort the process.......
- Could someone lead me to the magic command(s).....
- thanks
- mac
- ----------
-
- Very simple Try this,
-
- while :
- do
- sleep 30
- myprog
- done
-
- To abort this press the interrupt character. This script runs myprog after
- every 30 secs.
-
- Have fun,
- SK.
-