Problem running Python script as cron job

Patrick Phalen python-list at teleo.net
Mon Apr 10 14:59:56 EDT 2000


[William R. Dickson, on Mon, 10 Apr 2000]
:: In article <0004071555090M.01234 at quadra.teleo.net>, Patrick Phalen 
:: <python-list at teleo.net> wrote:
:: 
:: > [William R. Dickson, on Fri, 07 Apr 2000]
:: > :: Anybody know of any issues with running python scripts from Cron?
:: > 
:: > No. I've had multiple Python scripts running every one, two, five and
:: > ten minutes around the clock for years on multiple servers without
:: > problems.
:: > 
:: > I'd suspect you might have a bug lurking.
:: 
:: I think so too, but I can't find it, because the script runs flawlessly 
:: every time I run it by hand, and the buffer never flushes the output to 
:: the log when it's run by Cron.

Are you "running by hand" as the same user as your script? Maybe you
have a permissions problem, assuming the script needs to write to a
file or whatever.




More information about the Python-list mailing list