Table of Contents

Class: txChild txChild.py

This is a class to provide a child process with a built-in filter on the output pipe.

Methods   
__init__
spawnChild
transferIstr
  __init__ 
__init__ (
        self,
        proc_name,
        args,
        )

This is the constructor method. It stores the output stream as member data.

Arguments

proc_name a string containing the name of the child process

args the argument list obtained from argv

returns none

  spawnChild 
spawnChild ( self,  args )

This is a method to spawn a child process. It uses the pseudo-terminal module to fork a process. Turning off ECHO is important to avoid multiple writes to the screen.

Arguments

args the argument list obtained from argv

returns none

  transferIstr 
transferIstr ( self )

This function listens to output of the child process, filters it, and prints to the screen if appropriate. In this base class, it has no functionality and should be over-written in the derived class.

Arguments none

returns none


Table of Contents

This document was automatically generated on Tue May 29 14:02:56 2001 by HappyDoc version r1_4_1