Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.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; 'output': 0.04; 'python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:error': 0.11; 'template': 0.11; 'subject:python': 0.11; 'subject:when': 0.16; 'subprocess': 0.16; 'trying': 0.21; '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; 'this.': 0.29; 'file': 0.32; "skip:' 20": 0.32; 'running': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'next': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'sure': 0.38; 'step': 0.39; 'called': 0.39; 'help': 0.40; 'days': 0.60; 'link': 0.60; 'provide': 0.62; 'do:': 0.91 X-Received: by 10.49.81.198 with SMTP id c6mr1778719qey.37.1362664614274; Thu, 07 Mar 2013 05:56:54 -0800 (PST) Newsgroups: comp.lang.python Date: Thu, 7 Mar 2013 05:56:54 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.107.188; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <8e17232e-5b24-4040-9215-c4bd89f34fa2@googlegroups.com> <7bfe7117-d39d-48dc-9a6f-3d57484610a8@googlegroups.com> <213cf076-4163-44fd-a8b6-b25970da1bfa@googlegroups.com> <8a2af358-542c-45d3-b334-b4cb8f7cb7cf@googlegroups.com> <7b413998-2a6f-41cb-9e6d-7ba5b006bad4@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.107.188 MIME-Version: 1.0 Subject: Re: An error when i switched from python v2.6.6 => v3.2.3 From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362664616 news.xs4all.nl 6966 [2001:888:2000:d::a6]:50948 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40766 But iam tryign dayd for this i even tryign to chnage my 3 script to python v3.2.3 just to get subprocess up and running all the above fail: htmldata = os.system("python metrites.py '/data/files/htmltemp'") How can i tell system to send metritis.py's output to a temporary file called htmltemp so in the next step i can do what iam trying 3 days now to do: template = htmldata + counter os.system is very vague while i need specific help with this. if you provide me a link that describes my case of things i';; for sure read it.