Package tp :: Package client :: Module subprocess :: Class Popen
[show private | hide private]
[frames | no frames]

Type Popen

object --+
         |
        Popen

Known Subclasses:
Popen

Method Summary
  __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
Create new Popen instance.
  __del__(self, sys)
  communicate(self, input)
Interact with process: Send data to stdin.
  kill(self)
Kill the process with SIGKILL...
  poll(self)
  send_signal(self, sig)
Send a signal to the process...
  terminate(self)
Terminate the process with SIGTERM...
  wait(self)
Wait for child process to terminate.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Method Details

__init__(self, args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0)
(Constructor)

Create new Popen instance.
Overrides:
__builtin__.object.__init__

communicate(self, input=None)

Interact with process: Send data to stdin.  Read data from
stdout and stderr, until end-of-file is reached.  Wait for
process to terminate.  The optional input argument should be a
string to be sent to the child process, or None, if no data
should be sent to the child.

communicate() returns a tuple (stdout, stderr).

kill(self)

Kill the process with SIGKILL

send_signal(self, sig)

Send a signal to the process

terminate(self)

Terminate the process with SIGTERM

wait(self)

Wait for child process to terminate.  Returns returncode
attribute.

Generated by Epydoc 2.1 on Fri Jan 1 08:00:27 2010 http://epydoc.sf.net