Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7403

Re: Help with a piping error

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Help with a piping error
Date 2011-06-10 20:48 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <istvuf$bp1$1@reader1.panix.com> (permalink)
References <6e035898-8938-4a61-91de-7a0ea7ead8ab@y30g2000yqb.googlegroups.com>

Show all headers | View raw


In <6e035898-8938-4a61-91de-7a0ea7ead8ab@y30g2000yqb.googlegroups.com> virdo <virdoo@gmail.com> 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"

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Help with a piping error virdo <virdoo@gmail.com> - 2011-06-10 13:42 -0700
  Re: Help with a piping error John Gordon <gordon@panix.com> - 2011-06-10 20:48 +0000
    Re: Help with a piping error virdo <virdoo@gmail.com> - 2011-06-10 13:56 -0700
      Re: Help with a piping error Hans Mulder <hansmu@xs4all.nl> - 2011-06-10 23:56 +0200
        Re: Help with a piping error virdo <virdoo@gmail.com> - 2011-06-10 15:34 -0700

csiph-web