[modwsgi] mod_wsgi and calling subprocess.Popen

2010-09-19 Thread yurkao
i've ported my simple django application (v0.96 on Ubuntu hardy 8.04) from mod_python to mod_wsgi. the application seems to be simple enough. On each Http user request it runs sequentaly external system commands: * ps aux * cat /proc/pid/maps and writes their output to same output file.

Re: [modwsgi] mod_wsgi and calling subprocess.Popen

2010-09-19 Thread Robert Coup
On Mon, Sep 20, 2010 at 11:35 AM, yurkao yur...@gmail.com wrote: i've ported my simple django application (v0.96 on Ubuntu hardy 8.04) from mod_python to mod_wsgi. the application seems to be simple enough. On each Http user request it runs sequentaly external system commands: * ps aux *

[modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread yurkao
Rob, not sure if i've understood you corectly, but this is not webserver log. this is a sample job user wants to perform periodicaly. Its output should be redirected to some __output__ file, independent from webserver\apache\django log file. consider user has a library (module) with some method.

Re: [modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread Graham Dumpleton
Why not write a self contained shell script which does everything you want? Then invoke that using os.system() or similar. Certainly a lot easier as you don't have to fiddle with executing all the separate parts from Python. Graham On 20 September 2010 11:26, yurkao yur...@gmail.com wrote:

[modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread yurkao
1) that was just an example. The reality may be much more complex. 2) sometimes it cannot be combined into shell script; Interracting with DB between above calls ( ps_aux and cat_maps ) , accessing SVN other web site, local data etc,i've just simplified the cased. On 20 сен, 03:28, Graham

[modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread yurkao
1) that was just an example. The reality may be much more complex. 2) sometimes it cannot be combined into shell script; Interracting with DB between above calls ( ps_aux and cat_maps ) , accessing SVN other web site, local data etc,i've just simplified the cased. On 20 сен, 03:28, Graham

[modwsgi] Reduced mod_wsgi support until mid October.

2010-09-19 Thread Graham Dumpleton
FYI. I have been getting quite bad about replying promptly to mod_wsgi questions of late. This is about to get a lot worse. One of the main reasons that I have been so lax is because I have just been too busy getting ready for big overseas trip. I am about to leave on that trip and given I will