On my laptop, I have installed a webserver and have written a script. Accessing the script through http://localhost/test/search.php
in any browser makes it run properly: it searches for, downloads and stores certain tweets.
I now want to make the script run automagically every 20 minutes, so I downloaded and installed wget
for Windows in C:\Program Files\GnuWin32\bin\wget.exe
. I then created a Windows Task with the following Action (filled in on the Actions tab):
Program/script:
"C:\Program Files\GnuWin32\bin\wget.exe"
Add arguments (optional): -O - -q -t 1 http://localhost/test/search.php
As expected, every 20 minutes a command line opens to run the script. However, nothing happens. The script isn't initialized. I am sure all my paths are correct. What could be causing that the script doesn't get executed? The command line disappears in a matter of milliseconds, so I cannot see what it says...