Inserting-embedding some html data at the end of a .py file
Νίκος Γκρ33κ
nikos.gr33k at gmail.com
Wed Mar 6 01:12:01 EST 2013
Τη Τετάρτη, 6 Μαρτίου 2013 2:06:33 π.μ. UTC+2, ο χρήστης Michael Ross έγραψε:
> On Wed, 06 Mar 2013 00:39:31 +0100, Νίκος Γκρ33κ
>
> wrote:
>
>
>
> > htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' +
>
> > htmlpage )
>
> >
>
> > htmldata = subprocess.check_output( ['/usr/bin/python',
>
> > '/home/nikos/public_html/cgi-bin/' + htmlpage] )
>
> >
>
> > Both of the above statemnts fail i'am afraid with the same error message.
> check_output is available as of Python 2.7
> I guess you are still on version 2.6 ?
Actually i'am runnign myu cgi script on my hostgator remote web hosting.
How dod i check the version of python the server uses?
More information about the Python-list
mailing list