[UPHPU] run PHP CLI with cron
Walt Haas
haas at xmission.com
Thu Nov 8 19:33:17 MST 2007
Wade Preston Shearer wrote:
> I have a PHP script that runs as intended and without errors when run
> manually from the command line. When I set cron to run it, however, it
> fails. It is my understanding that cron executes the script as the
> user that set up the cron job. Is that true? What would be different
> from when I run it manually compared to when cron is running it?
Usually some environment variables - the path may not include
everything you need to run your script, even though it runs with your
permissions. You didn't say exactly what you're running on but the
usual thing is to pare down the path to the minimum.
-- Walt
More information about the UPHPU
mailing list