|
Re: how-to: one command for repeat OR iterate shell OR bash command delay O: msg#00044linux.newbie
Hi, On Sun, 17 Jul 2005 11:57:34 +0700 AD Marshall <admarshall@xxxxxxxxx> wrote: > Is there already one bash command to do what the following script > does (poorly or incompletely), ie repeat "command" indefinitely > every "x" seconds: > > #!/bin/sh > # usage: repeat [x] <command> > while true ; do $2 ; sleep $1 ; done > > < rest deleted > The watch command might tbe what you want. Or maybe not, if you don't want anything output to screen. Try man watch for details. regards, John Kelly - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | how-to: one command for repeat OR iterate shell OR bash command delay OR interval: 00044, AD Marshall |
|---|---|
| Next by Date: | Re: how-to: one command for repeat OR iterate shell OR bash command delay OR interval: 00044, AD Marshall |
| Previous by Thread: | how-to: one command for repeat OR iterate shell OR bash command delay OR intervali: 00044, AD Marshall |
| Next by Thread: | Re: how-to: one command for repeat OR iterate shell OR bash command delay OR interval: 00044, AD Marshall |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |