[Tutor] Re: Permissions Problem with Python
Lee Harr
missive at hotmail.com
Sun Sep 14 10:49:32 EDT 2003
>I have the following line at the start of create_table.py -
>#!/usr/bin/env python.
>
>I wish to be able to execute these python programs from crontab.
>
It is probably not a python problem, but a cron problem.
When you run things from cron, then environment (that
which is referred to by the /usr/bin/env program above)
is different from the environment when you are just
manually running the program.
In your crontab, try something like ...
/usr/local/bin/python /home/lee/bin/update_pgsql.py
In other words, use absolute paths for everything.
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
More information about the Tutor
mailing list