Re: subprocess.Popen in django production - are file descriptors closed?

2009-08-31 Thread aaron smith
Freeman wrote: > Are you saying that it works in the development server environment?  If so, > it could be permission > issues.  Have the ruby script append a time stamp to a world writable log > file to confirm that it gets > run. > > Bill > > On Fri, Aug 28, 2009 at

subprocess.Popen in django production - are file descriptors closed?

2009-08-28 Thread aaron smith
Hey All, quick question. I have a small snippet of code that runs a ruby script, which I read the stdout when it's done. But, I'm not getting the stdout when it's in django production. Here's my python snippet: def generate_license(paymentForm,dsaPrivFile): name = paymentForm.cleaned_da

Re: problem with manage.py runfcgi and the pidfile parameter

2009-07-06 Thread aaron smith
AH. I figured it out. There weren't any errors thrown because the stoud was being redirected to null, and there were permission denied errors to create files in /var/run/ On Sun, Jul 5, 2009 at 4:44 PM, aaron smith wrote: > Just as another illustration of the problem. I'm using t

Re: problem with manage.py runfcgi and the pidfile parameter

2009-07-05 Thread aaron smith
On Sun, Jul 5, 2009 at 3:55 PM, aaron smith wrote: > Hey all, I'm running into something that I'm not sure if it's a > problem, or something I might be doing wrong. What I'm working on is > some deployment scripting, and using pid files to kill processes. I&#x

problem with manage.py runfcgi and the pidfile parameter

2009-07-05 Thread aaron smith
Hey all, I'm running into something that I'm not sure if it's a problem, or something I might be doing wrong. What I'm working on is some deployment scripting, and using pid files to kill processes. I'm having problems with the pidfile attribute. When I run manage.py like this, the pidfile is wri

Django, FCGI, Cherokee. Spawning PHP Processes and detaching?

2009-04-29 Thread aaron smith
Hey All, Sorry If I don't have some of this terminology correct. Here's my problem. I have a django app, which I'm serving with Cherokee and FCGI. My django app manages a bunch of stuff, and has to make a couple calls to an external soap service, to record some customer data. Unfortunately, I ca