Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:file': 0.07; 'python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python- list': 0.10; '2.7': 0.13; 'charset:iso-8859-7': 0.15; "skip:' 30": 0.15; 'wed,': 0.16; 'wrote:': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:[ 10': 0.26; 'guess': 0.27; '2.6': 0.27; '+0100,': 0.29; 'cgi': 0.29; 'subject:end': 0.29; 'subject:some': 0.29; 'error': 0.30; 'message.': 0.33; 'hosting.': 0.33; 'subject: .': 0.33; 'subject:data': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'server': 0.35; 'fail': 0.35; 'remote': 0.35; 'received:209.85': 0.35; 'michael': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'subject:-': 0.40; 'afraid': 0.66; '2013': 0.84; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84 X-Received: by 10.49.75.66 with SMTP id a2mr1755737qew.21.1362550321461; Tue, 05 Mar 2013 22:12:01 -0800 (PST) Newsgroups: comp.lang.python Date: Tue, 5 Mar 2013 22:12:01 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.127.128; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <7e0a8562-9a48-4f5a-804d-3751733288f0@googlegroups.com> <009ab803-6269-453b-bff1-0c58a6db358d@googlegroups.com> <0d58f312-9259-407d-b47b-80b88cf9a82c@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.127.128 MIME-Version: 1.0 Subject: Re: Inserting-embedding some html data at the end of a .py file From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362550330 news.xs4all.nl 6980 [2001:888:2000:d::a6]:50807 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40608 =D4=E7 =D4=E5=F4=DC=F1=F4=E7, 6 =CC=E1=F1=F4=DF=EF=F5 2013 2:06:33 =F0.=EC.= UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Michael Ross =DD=E3=F1=E1=F8=E5: > On Wed, 06 Mar 2013 00:39:31 +0100, =CD=DF=EA=EF=F2 =C3=EA=F133=EA =20 >=20 > wrote: >=20 >=20 >=20 > > htmldata =3D subprocess.check_output( '/home/nikos/public_html/cgi-bin/= ' + =20 >=20 > > htmlpage ) >=20 > > >=20 > > htmldata =3D subprocess.check_output( ['/usr/bin/python', =20 >=20 > > '/home/nikos/public_html/cgi-bin/' + htmlpage] ) >=20 > > >=20 > > Both of the above statemnts fail i'am afraid with the same error messag= e. > check_output is available as of Python 2.7=20 > 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?