Lines Matching full:commands
2 :mod:`commands` --- Utilities for running commands
5 .. module:: commands
7 :synopsis: Utility functions for running external commands.
11 The :mod:`commands` module has been removed in Python 3. Use the
17 The :mod:`commands` module contains wrapper functions for :func:`os.popen` which
23 preferable to using the :mod:`commands` module.
32 The :mod:`commands` module defines the following functions:
63 >>> import commands
64 >>> commands.getstatusoutput('ls /bin/ls')
66 >>> commands.getstatusoutput('cat /bin/junk')
68 >>> commands.getstatusoutput('/bin/junk')
70 >>> commands.getoutput('ls /bin/ls')
72 >>> commands.getstatus('/bin/ls')