Is it possible to put an "if" statement in a user's crontab, or is there another sensible way to organise lots of conditional cron jobs? From the end user's perspective, it would be easiest if they could use the normal crontab and just put their entries between two lines if possible.
Ideally something like:
if [ something ]; then * * * * * /usr/bin/php /path/to/file.php 0 0 * * * /usr/bin/php /path/to/file2.php */5 * * * * /root/script.sh fi
dig. The servers are replicas and I'm trying to make sure the crons only run on the current live server.