[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