Problem running Python script as cron job

William R. Dickson wrd at awenet.com
Mon Apr 10 16:23:25 EDT 2000


In article <0004101202210J.00831 at quadra.teleo.net>, Patrick Phalen 
<python-list at teleo.net> wrote:

> :: > :: 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.

In both cases, it's running as root.

Thanks,

-Bill



More information about the Python-list mailing list