All posts tagged with: linux

Using cron & curl to monitor the status of your site

2011-01-24 20:56:00

I wanted a method of automatically checking every so often if a site was up and running and came up with the following method that uses cron to run curl on an arbitrary page on the website. For example curl http://www.tuskdesign.com Now in its default behaviour this will output the content of the page (i.e. the html) to standard out, or if there is an error to standard error. In both cases this is usually the terminal if you are using curl from the command line, or if it is in your cront...

Read more...

Posted in development, linux,