php - SOLVED: Every 5 min cron job between specific time (Windows server 2008 and batch file) -


previous colleague set cron job every 5 min 24 hrs.
now need modify running between 7am 7pm.

i had never learned cron job googled , tried didn't work.


task scheduler set below

enter image description here

and modified batch file

c:\php\php.exe -f c:\path\cron.php five-mins

to

7-19/5 * * * * c:\php\php.exe -f c:\path\cron.php five-mins


even added 7-19/5 * * * * batch file, doesn't work.

appreciative if can me.
in advance , taking time.

update

found question on https://superuser.com/questions/133456/run-a-cron-job-every-5-minutes-between-two-times , changed batch file */5 7-19 * * * instead of 7-19/5 * * * * still not working.

update & solved

got solution redgrittybrick on superuser.com https://superuser.com/questions/926549/every-5-min-cron-job-between-specific-time-windows-server-2008-and-batch-file


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -