bash
GNU/Linux bash: execute a command every X seconds indefinitely (without cron)
Submitted by fabio on Sat, 2010-01-16 11:38.
If you use the GNU/Linux operating system intensely as development environment or as a server you'll probably find yourself in need of running a determinate command or script every X seconds forever.
This could be useful for example to check that a service you run on your server is working correctly (e.g. your Apache httpd server), to clear some cache your system is using or to periodically check for software updates. Personally I needed this to periodically update the DNS entry of my home server with its current IP (my ISP gives dynamic IP, not static ones).
- fabio's blog
- 2 comments
- Read more
- 547 reads





Recent comments
3 days 7 hours ago
4 days 1 hour ago
4 days 10 hours ago
5 days 6 hours ago
5 days 10 hours ago
5 days 11 hours ago
5 days 11 hours ago
5 days 12 hours ago
5 days 18 hours ago
6 days 3 hours ago