Browse:

Web Developers and Cron jobs

if you’re going to add a cron job to a (web) server, please make sure any output is sent to a valid email address (or log file) which is monitored….

This can be achieved through a number of ways :

Specifying a MAILTO=someone@somewhere at the top of the cron file (see ‘man 5 crontab’ for more information on this).

Editing /etc/aliases and making sure the user the cron job is running as has their email delivered somewhere ‘real’ (e.g. support@yourCompany) (this is dependent on the MTA configuration on the server though).

Redirect output from cron jobs to named files, and then have a daily report generated on these (E.g. using logcheck).

Having cron job output ‘disappear’ in the ether only results in errors going unnoticed, and unexplained behaviour on the site(s) in the future.

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

Comment

Name *

Email *

Website

Share

Search

Customer Quotes

We’ve been using Pale Purple for over 5 years now. There’s a lot of benefits to be gained from building a close relationship with a small but very stable and capable team.
Paul HiscoeTransparencyData.co.uk