Recurring Invoices

Hi - Just wanted to double check that I am creating a correct cron for Ubuntu 16.04

I’ve added the following to /etc/crontab

0 8 * * * /usr/bin/php /var/www/ninja/artisan ninja:send-invoices
0 8 * * * /usr/bin/php /var/www/ninja/artisan ninja:send-reminders

According to ‘which php’ /usr/bin/php is my PHP directory (running PHP 7)

Does this look correct?

Many thanks

Looks good to me

Many thanks - Just checking /var/log/syslog and I don’t see any entries in there. (created the cron job yesterday) Should cron log any output if it is successful?

Many thanks

I’ve since changed the cron job to specify the root user and they are now running according to /var/syslog.

However, I see the following two lines after each cron job in syslog

(CRON) info (No MTA installed, discarding output)

The message seems to relate to the absence of postfix or otherwise - however there is nothing in the self-host documentation that mentions installing it.

Many thanks

Actually upon further reading this output seems to be related to crontab attempting to email the results of the job to the root account.

I guess I can safely ignore it?