Re: Wits end with Python and cron

2005-09-28 Thread Fredrik Lundh
I wrote: > if you're running a python program directly from cron and I should really learn to tell the difference between a shell script and a python program (but hey, this is comp.lang.python). see jepler's reply for the quickest way to fix your problems. -- http://mail.python.org/mailma

Re: Wits end with Python and cron

2005-09-28 Thread Fredrik Lundh
Justin Delvecchio wrote: > I've researched this problem for the last few days. Say I have > the following script that I execute from cron on linux. Yes, the > following runs quite fine from the command line: > And the error I continually get is: > > Traceback (most recent call last): > File "

Re: Wits end with Python and cron

2005-09-28 Thread jepler
You need to "export" the variables. otherwise, they exist only in the shell, not in the processes it starts. Jeff pgplXE5VuF44A.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Wits end with Python and cron

2005-09-28 Thread Justin Delvecchio
I’ve researched this problem for the last few days.  Say I have the following script that I execute from cron on linux.  Yes, the following runs quite fine from the command line:   #! /bin/sh # /u01/app/oracle/product/10.1.0/Db_1/lib source /home/oracle/.bashrc PYTHONPATH=/usr/lib/pyth