Cron task to run script at the beginning of the month

I would like to write a cron job that should run a PHP script on the first day of every month.

Could you help me with this?

Thanks.

+2


a source to share


1 answer


Add this to crontab -e:

0 0 1 * * php /path/to/script.php

      



Good luck!

+1


a source