Re: Python and Cron

2007-09-08 Thread Amit Khemka
On 9/8/07, Greg Lindstrom <[EMAIL PROTECTED]> wrote: > # run client pricing at 0215 (p) Monday-Friday > 15 2 * * 1-5 cd /m01/edith/src && /usr/bin/python /m01/edith/src/driver.py > --paid-date yesterday --jobname professional >> > /m01/edith/stdout/ecomppo.stdout 2&>1 "2&>1", Is that a typo ? It

Re: Python and Cron

2007-09-07 Thread Shawn Milochik
Any chance your import statements aren't coming in properly due to something in your environment in Python that's not being inherited by your cron job? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Cron

2007-09-07 Thread Greg Lindstrom
> "Shawn Milochik" <[EMAIL PROTECTED]> > Could you send the output of "crontab -l" and the script you're running? > > It's probably an environment issue of some kind, but it's hard to say > what blindly. # run client pricing at 0215 (p) Monday-Friday 15 2 * * 1-5 cd /m01/edith/src && /usr/bin/py

Re: Python and Cron

2007-09-07 Thread Greg Lindstrom
> Can you post the Python script? Not the whole thing; it's quite long. But here's the relevant parts. We're using the ado database interface into postgres (that's what the results.EOFis all about) output_file = file(output_path, 'w') # output_path = /my_path/data/work/my_file.txt while not

Re: Python and Cron

2007-09-07 Thread Paul McNett
Greg Lindstrom wrote: > This may be more of a Linux question, but I'm hoping some of you may be > able to help me. > > I have a python (2.4) routine running on Gentoo Linux. It creates a > file and, after the file is complete, renames the file using the > os.rename() command. When I run the f

Re: Python and Cron

2007-09-07 Thread Shawn Milochik
Could you send the output of "crontab -l" and the script you're running? It's probably an environment issue of some kind, but it's hard to say what blindly. -- http://mail.python.org/mailman/listinfo/python-list