til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Repeating an executable continuously

This is a quick replacement for setting up a cronjob or implementing a daemon while doing development of some kind is really nifty for when you want that particular behaviour where something runs repeatedly, but lack the time to implement the rest, since it is the repeated execution you need here and now.

The example is lifted from StackOverflow.

$ while true; do ls -l; sleep .5; done

I use is for development/test environments at work, which are not completely set up, but I want to mimic the behaviour in the production environment.

References