Linux, WebDev and other…

Simple daemon wrapper script in bash

I needed to run quick  PHP script every 15 seconds. Cron job cannot be used to run tasks more frequently than one minute. This simple script based on this will do the trick. Can be used on servers with shell access without root permissions.


2014-10-29 Added pid check




, ,

Leave a Reply

Your email address will not be published. Required fields are marked *