6

I need to schedule a Task inside of my Windows 2012 to run every minute, how would one accomplish that? This is my Task:

C:\>C:\Users\Administrator\Downloads\wget\bin\wget.exe --spider --quiet http://XXX/XXX.aspx
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Users\Administrator\Downloads\wget/etc/wgetrc

C:\>

I've tried Task Scheduler->Create Task, but I can't figure out how to schedule to run it every minute.

this is equivalent in *NIX world:

$ crontab -l
* * * * *   wget --spider --quiet http://XXX/XXX.aspx
$ 

any ideas? thanks!

alexus
  • 12,342
  • 27
  • 115
  • 173

1 Answers1

8

Even though the GUI drop down menu only goes down to 5 minutes... just try manually typing in 1 minute.

enter image description here

Ryan Ries
  • 55,011
  • 9
  • 138
  • 197
  • thanks, you forgot "for a duration of" `Indefinitely`, but I got the idea) thanks! – alexus Feb 14 '13 at 01:54
  • where can I see logs about this task? it shows me that it ran successfully yet in IIS logs I'm not seeing a hit. – alexus Feb 14 '13 at 02:08
  • Well that's complicated. As long as *something* was excecuted and returned, the Task Scheduler thinks everything's cool. But in reality what was executed might not have been what you intended. If wget has any logging parameters, now would be a good time to use them. As well as adding 2>&1>out.log to the end of your command for debugging purposes to capture all stdout and stderr output from the command that was executed. – Ryan Ries Feb 14 '13 at 02:58
  • If that doesn't do it for you, I humbly suggest submitting that problem as a new question, as in my opinion that's a whole different issue than what was asked in this question. – Ryan Ries Feb 14 '13 at 03:00