GRASS Programmer's Manual  6.4.2(2012)
compat.subprocess.Popen Class Reference

Public Member Functions

def __init__
 Create new Popen instance.
def poll
 Check if child process has terminated.
def wait
 Wait for child process to terminate.
def communicate
 Interact with process: Send data to stdin.
def poll
 Check if child process has terminated.
def wait
 Wait for child process to terminate.
def communicate
 Interact with process: Send data to stdin.

Data Fields

 stdin
 stdout
 stderr
 pid
 returncode
 universal_newlines

Detailed Description

Definition at line 483 of file subprocess.py.


Constructor & Destructor Documentation

def compat.subprocess.Popen.__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 
)

Create new Popen instance.

Definition at line 484 of file subprocess.py.


Member Function Documentation

def compat.subprocess.Popen.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).

Definition at line 757 of file subprocess.py.

Referenced by compat.subprocess.Popen.communicate().

def compat.subprocess.Popen.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).

Definition at line 1012 of file subprocess.py.

References compat.subprocess.Popen.communicate().

Check if child process has terminated.

Returns returncode attribute.

Definition at line 733 of file subprocess.py.

Check if child process has terminated.

Returns returncode attribute.

Definition at line 990 of file subprocess.py.

Wait for child process to terminate.

Returns returncode attribute.

Definition at line 743 of file subprocess.py.

Wait for child process to terminate.

Returns returncode attribute.

Definition at line 1003 of file subprocess.py.


Field Documentation

Definition at line 484 of file subprocess.py.

Definition at line 484 of file subprocess.py.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines