running a pipe of commands from python

Harald Kirsch kirschh at lionbioscience.com
Wed Dec 13 02:21:39 EST 2000


In Tcl I just write

   exec doThis | doThat |toMore | finishUp >output <input 2>errors

In the Python reference manual I find os.exec(), os.fork(), popen2()
etc, but none of these is as easy to use as Tcl's exec. What is
Python's equivalent (and I am sure there must be somehting)?

  Harald Kirsch

-- 
----------------+------------------------------------------------------
Harald Kirsch   | kirschh at lionbioscience.com | "How old is the epsilon?"
LION Bioscience | +49 6221 4038 172          |        -- Paul Erdös
       *** Please do not send me copies of your posts. ***



More information about the Python-list mailing list