Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running "cron" job on Windows server [duplicate]

Possible Duplicate:
What is the Windows version of cron?

Hi everyone,

I'm having a script.php on IIS server and I want to call that script automatically every x minutes. The problem is that I need to pass arguments to the script like I would do in the browser (script.php?task=aaa). it seems that scheduled task ignores argument ?task=aaa...

How can I run this script passing it some "GET" arguments?

Thanks, L

like image 444
luigi7up Avatar asked Dec 13 '22 12:12

luigi7up


1 Answers

I have twice cron jobs like these on my windows 2003 server. I program a schelude task of iexplorer with the url that I can work.

For example:

"C:\ProgramFiles\Internet Explorer\iexplore.exe" http://mydomain.com/admin/index.php?action=central_alertas.php&act=1

like image 61
Fran Hurtado Avatar answered Dec 18 '22 00:12

Fran Hurtado