"shell-commands" and python!
Ignacio Vazquez-Abrams
ignacio at openservices.net
Fri Sep 21 12:20:27 EDT 2001
On Fri, 21 Sep 2001, Greg Weeks wrote:
> < > >> 2> 2>> 2>&1 # REDIRECTION
popen(..., 'w'), popen(..., 'r'), popen(..., 'r'), popen3(...),
popen3(...), popen4(...)
Note that I don't make a distinction between clobbering and appending; the
point of a programming language is to process data, not just push it around.
> & # BACKGROUND
Start a new thread and use the above.
> | # PIPING
popen(..., 'r') on one, popen(..., 'w') on the other.
> $() or `` # CAPTURING STDOUT
popen(..., 'r')
--
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list
mailing list