This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aht
Recipients Netto, aht, amaury.forgeotdarc, tebeka, vincent.legoll, vlegoll
Date 2010-08-23.08:53:40
SpamBayes Score 0.00015901445
Marked as misclassified No
Message-id <1282553622.36.0.540664580259.issue3548@psf.upfronthosting.co.za>
In-reply-to
Content
I've written a package which can do this with arbitrary redirection in all subcommands (and some more).

You can, for example, do this:

    >>> Pipe(Sh('echo -n foo >&2', {2: 1}), Sh('cat; echo ERROR >&2', {2: os.devnull})).capture(1).read()
    'foo'

The package is at: http://github.com/aht/pc.py
History
Date User Action Args
2010-08-23 08:53:42ahtsetrecipients: + aht, amaury.forgeotdarc, tebeka, vlegoll, vincent.legoll, Netto
2010-08-23 08:53:42ahtsetmessageid: <1282553622.36.0.540664580259.issue3548@psf.upfronthosting.co.za>
2010-08-23 08:53:40ahtlinkissue3548 messages
2010-08-23 08:53:40ahtcreate