diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-10-27 14:54:43 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-10-27 14:54:43 +0000 |
commit | d2ee30b4851905b00fb77c67f828171b45b043ed (patch) | |
tree | 098036c340dbe78680e3233a9245a1b68b186746 /Doc/lib/libcommands.tex | |
parent | 5f958708685c3345290d625041b877c413723f76 (diff) | |
download | cpython-git-d2ee30b4851905b00fb77c67f828171b45b043ed.tar.gz |
Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules
Diffstat (limited to 'Doc/lib/libcommands.tex')
-rw-r--r-- | Doc/lib/libcommands.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/lib/libcommands.tex b/Doc/lib/libcommands.tex index 74e7023a79..53b8a20707 100644 --- a/Doc/lib/libcommands.tex +++ b/Doc/lib/libcommands.tex @@ -12,6 +12,11 @@ The \module{commands} module contains wrapper functions for return any output generated by the command and, optionally, the exit status. +The \module{subprocess} module provides more powerful facilities for +spawning new processes and retrieving their results. Using the +\module{subprocess} module is preferable to using the \module{commands} +module. + The \module{commands} module defines the following functions: @@ -51,3 +56,7 @@ Example: >>> commands.getstatus('/bin/ls') '-rwxr-xr-x 1 root 13352 Oct 14 1994 /bin/ls' \end{verbatim} + +\begin{seealso} + \seemodule{subprocess}{Module for spawning and managing subprocesses.} +\end{seealso} |