[NTLUG:Discuss] Simple way to repeat command every 'x' seconds
Richard Geoffrion
ntlug at rain4us.net
Mon Apr 14 09:54:04 CDT 2003
Jack Snodgrass wrote:
> I want to be able to do something like
> do forever
> du -H -s
> sleep 20 seconds
> loop
>
> from the command line with a simple command. Is there something
> already out there that does this, or do I have to write a script?
>
while true; do du -H -s ; sleep 20 ; done
the SIMPLE route. Just hit ctrl-c to exit.
-Richard
More information about the Discuss
mailing list