Ksh-ish functionality on Unix systems

Andrew Dalke dalke at dalkescientific.com
Fri Sep 21 22:29:56 EDT 2001


Greg Weeks wrote:
>And here is what I find in Python:
>
>  LOW LEVEL:
>    os:  open pipe dup2 close fork execv waitpid
>  HIGHER LEVEL:
>    os:        system
>    os:        popen
>    commands:  getstatusoutput
>    popen2:    *

Delving deep into obscure library modules, you forgot 'pipes'

http://python.sourceforge.net/devel-docs/lib/module-pipes.html

I've never seen it used outside of the Python distribution (docs
and regressions).  Bonus points for anyone who can - from memory! -
write working code that 'pipes' :)

                    Andrew
                    dalke at dalkescientific.com







More information about the Python-list mailing list