Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test a cron job in Local Server like WAMP?

How to test a cron job in Local Server like WAMP?

like image 890
Starx Avatar asked Jul 13 '10 12:07

Starx


People also ask

How do I test a cron expression?

CRON Tester is a useful cron tester that allows you to test your cron time definitions. All you need to do is copy and paste your cron syntax in the cron definition field, then choose the number of iterations and click on “Test” to see the various dates on which it will run.


1 Answers

Windows doesn't have Cron (it is the main task scheduling program for Linux systems). The Windows version for that is the Task Scheduler. This question recommends using the at command.

So that Cron doesn't have anything to do with the Apache, Mysql, PHP setup I don't think it is possible to reliably test the cronjobs you created for the Linux Cron in windows (maybe with Cygwin).

like image 71
Daff Avatar answered Oct 08 '22 18:10

Daff