Re: Strange python script behaviour

2009-08-04 Thread Loïc Domaigné
> > > I have a problem with one of my python scripts. When I run this script > > > from command line it works correctly, but if I set up cron to run this > > > script on specified hour it works for a while and then "[Errno 32] > > > Broken pipe" error occures (always). > > > > The strangest thing

Re: Strange python script behaviour

2009-08-04 Thread Łukasz
On 4 Sie, 10:08, Lars Behrens wrote: > Łukasz wrote: > > The strangest thing is that if I change command in CRON > > > from > > python /home/xxx/script.py > > to > > python /home/xxx/script.py  > /tmp/script.log 2>&1 > > > the script always works correctly!!! > > > The question is WHY? Any ideas?

Re: Strange python script behaviour

2009-08-04 Thread Łukasz
On 4 Sie, 10:02, Loïc Domaigné wrote: > Hi, > > > I have a problem with one of my python scripts. When I run this script > > from command line it works correctly, but if I set up cron to run this > > script on specified hour it works for a while and then "[Errno 32] > > Broken pipe" error occures

Re: Strange python script behaviour

2009-08-04 Thread Lars Behrens
Łukasz wrote: > The strangest thing is that if I change command in CRON > > from > python /home/xxx/script.py > to > python /home/xxx/script.py > /tmp/script.log 2>&1 > > the script always works correctly!!! > > The question is WHY? Any ideas? Seems to me that this is more of a shell thing...

Re: Strange python script behaviour

2009-08-04 Thread Loïc Domaigné
Hi, > I have a problem with one of my python scripts. When I run this script > from command line it works correctly, but if I set up cron to run this > script on specified hour it works for a while and then "[Errno 32] > Broken pipe" error occures (always). > > The strangest thing is that if I cha