running cgi with cron
Posted by: snakepimp
Posted on: 2007-02-19 13:29:00
I know I have to declare the environment explicitly, such as:
* * * * * /usr/bin/python /home/.bullcrap/username/www/script.py
but when I run "which cgi" from shell to confirm the directory it resides in, shell gives no response for cgi.
The crontab file includes the following (edited for privacy):
0 4 * * * /home/.bullcrap/username/www/cgi-bin/tgp/cron.cgi --build-with-new
All my other cron jobs in this file are running fine, but I can't get the cgi to respond. I searched the dreamhost WIKI, these forums, and I searched the application's documentation, and I can't find any problems, and I'm a newb, so I don't know how to check the crontab logs, but it should just work...
additionally, I know all my newline characters are in place, because the subsequent scripts in the crontab file run fine, and this is the first line.
Help me out, y'all!
~Once Greenland melts, it'll be a different ballgame,
Jeremy.
Edited by snakepimp on 02/19/07 01:42 PM (server time).