GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 488 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().

def compat.subprocess.Popen.poll (   self)

Check if child process has terminated.

Returns returncode attribute.

Definition at line 733 of file subprocess.py.

def compat.subprocess.Popen.poll (   self)

Check if child process has terminated.

Returns returncode attribute.

Definition at line 990 of file subprocess.py.

def compat.subprocess.Popen.wait (   self)

Wait for child process to terminate.

Returns returncode attribute.

Definition at line 743 of file subprocess.py.

def compat.subprocess.Popen.wait (   self)

Wait for child process to terminate.

Returns returncode attribute.

Definition at line 1003 of file subprocess.py.


Field Documentation

compat.subprocess.Popen.pid

Definition at line 514 of file subprocess.py.

Referenced by gui_modules.gcmd.Popen.kill().

compat.subprocess.Popen.returncode

Definition at line 515 of file subprocess.py.

compat.subprocess.Popen.stderr

Definition at line 513 of file subprocess.py.

compat.subprocess.Popen.stdin

Definition at line 511 of file subprocess.py.

Referenced by gui_modules.gcmd.Popen.send().

compat.subprocess.Popen.stdout

Definition at line 512 of file subprocess.py.

compat.subprocess.Popen.universal_newlines

Definition at line 516 of file subprocess.py.

Referenced by gui_modules.gcmd.Popen.send().


The documentation for this class was generated from the following file: