mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules
This commit is contained in:
parent
1f3ebe0b10
commit
d3aad0199e
4 changed files with 38 additions and 9 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue