Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Help with a piping error Date: Fri, 10 Jun 2011 20:48:15 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 20 Message-ID: References: <6e035898-8938-4a61-91de-7a0ea7ead8ab@y30g2000yqb.googlegroups.com> NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1307738895 12065 166.84.1.1 (10 Jun 2011 20:48:15 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 10 Jun 2011 20:48:15 +0000 (UTC) User-Agent: nn/6.7.3 Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7403 In <6e035898-8938-4a61-91de-7a0ea7ead8ab@y30g2000yqb.googlegroups.com> virdo writes: > My python file is simple print "test". I run it, it works no problem. > I pipe the output to a file "run > logfile" and that's the error I > get. This is with Windows Server 2008 (64 bit) using ActivePython > 2.7.1.4 (64 bit). Are you using an actual pipe symbol in your command? Your post title suggests you are, but your sample command uses the greater-than symbol. It's always best to include the actual command and the actual output rather than typing it by hand, specifically to avoid errors like this. Please repost a transcript of your real session. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"