Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:file': 0.07; 'python': 0.09; '2.7': 0.13; "skip:' 30": 0.15; 'received:your- server.de': 0.16; 'wed,': 0.16; 'wrote:': 0.17; '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; 'subject:end': 0.29; 'subject:some': 0.29; 'error': 0.30; 'message.': 0.33; 'subject: .': 0.33; 'subject:data': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'fail': 0.35; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'afraid': 0.66; '2013': 0.84 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: python-list@python.org Subject: Re: Inserting-embedding some html data at the end of a .py file References: <7e0a8562-9a48-4f5a-804d-3751733288f0@googlegroups.com> <009ab803-6269-453b-bff1-0c58a6db358d@googlegroups.com> <0d58f312-9259-407d-b47b-80b88cf9a82c@googlegroups.com> Date: Wed, 06 Mar 2013 01:06:33 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Michael Ross" In-Reply-To: <0d58f312-9259-407d-b47b-80b88cf9a82c@googlegroups.com> User-Agent: Opera Mail/12.14 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.6/16788/Tue Mar 5 23:07:27 2013) 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: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362528402 news.xs4all.nl 6984 [2001:888:2000:d::a6]:59779 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40585 On Wed, 06 Mar 2013 00:39:31 +0100, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE=93= =CE=BA=CF=8133=CE=BA = wrote: > htmldata =3D subprocess.check_output( '/home/nikos/public_html/cgi-bin= /' + = > htmlpage ) > > htmldata =3D 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 messa= ge. check_output is available as of Python 2.7 I guess you are still on version 2.6 ?