philaspery
08-14-2001, 05:35 PM
OK, this is doing my head in...
My cron daemon is working fine, but...
I want to call a php script (which is in a directory protected by a .htaccess file) using an HTTP request.
Now, if I type at the shell prompt:
$ wget --http-user=[user] --http-passwd=[pword] /root_to_file/file.php, the browser opens, the script is called, everything is fine...
But, if I with this line in my crontab:
0 0 * * * /usr/bin/wget [the same stuff as above], nothing happens!
I am successfully calling other scripts using wget using cron (but they have no .htaccess!?)
Please, does anybody know what the hell is going on? I can't find guidance anywhere.
My cron daemon is working fine, but...
I want to call a php script (which is in a directory protected by a .htaccess file) using an HTTP request.
Now, if I type at the shell prompt:
$ wget --http-user=[user] --http-passwd=[pword] /root_to_file/file.php, the browser opens, the script is called, everything is fine...
But, if I with this line in my crontab:
0 0 * * * /usr/bin/wget [the same stuff as above], nothing happens!
I am successfully calling other scripts using wget using cron (but they have no .htaccess!?)
Please, does anybody know what the hell is going on? I can't find guidance anywhere.