commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Short method of "while x=0; do foo ; sleep 1 ; done"
There are 5 alternatives - vote for the best!
Repeat command after every 2 secs
For use when you can't use "watch" (user-defined functions, aliases). This isn't mine - its an alternate posted in the comments by flatcap, and is the shortest and easiest to remember.
repeat a command every X seconds , output show the creation of partition image using fsarchiver, each line show the size of the image.
If you can do better, submit your command here.
You must be signed in to comment.