[Techtalk] A PHP script in a crontab.
suzo at spin.net.au
Tue Feb 8 14:19:55 EST 2005
Kathryn Andersen wrote:
> Okay, given that we've established that "GET" is a sort of
> mini-web-server (which is why you pass it the URL of your script),
> I wonder if it would work if you called GET with the full pathname of
> GET (if your web-hoster would tell you what it is).
> The reason I say this is that 90% of the time when a cron job doesn't
> work (and it works when the user runs it himself) is because the
> environment of cron is very minimal, and not the same as that of the
> user. This causes problems in two ways:
> 1) cron can't find the command it's supposed to run, because the PATH
> environment variable is different
> 2) cron runs the command, but the command is expecting certain
> environment variables to be set, and they aren't.
Well I am finally getting an error message, I don't know why I wasn't
getting it before, but the ISP has been looking at the issue.
The error message says that I don't have permissions to run GET.
That seems like a very likely cause of the error!
More information about the Techtalk