1

I scheduled a cron job to hit a page 1st of every month at 12.00AM but the cron didn't work for some reason. The below is the cron I have used :

0 0 1 * * /usr/bin/php /var/www/html/cronleave.php >/dev/null 2>&1

Any help will be appreciated.

ilim
  • 4,477
  • 7
  • 27
  • 46
Vinit Sinkar
  • 99
  • 2
  • 10

1 Answers1

3

using sample :

0 0 1 * * wget -O /dev/null -o /dev/null http://www.domain.com/cronleave.php >/dev/null 2>&1

and check time server

Mohammad
  • 497
  • 3
  • 15