On Thu, Mar 7, 2013 at 1:51 PM, rh <richard_hubb...@lavabit.com> wrote:

> On Thu, 7 Mar 2013 07:57:33 -0800 (PST)
> Νίκος Γκρ33κ <nikos.gr...@gmail.com> wrote:
> >
> > I found it! I have placed 'htmltemp' within the os.system() call.
> > Otherwise, os.system() returns a return value (int) which python then
> > tries to concatenate with htmltemp (string).
> >
> > os.system( 'python metrites.py > %s' % htmltemp )
>
> Can also do
> sterrs = 'errorsout'
> os.system( 'python metrites.py > {0} 2> {1}'.format(htmltemp,sterrs))
>
> It's more 3ish, or 3ist or 3like.
> >
> > :-)
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

The content type situation is discussed here
http://stackoverflow.com/questions/9145517/executing-a-python-script-in-apache2

-- 
Joel Goldstick
http://joelgoldstick.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to