Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | poll |
def | wait |
Data Fields | |
pid | |
tochild | |
fromchild | |
childerr | |
sts | |
Static Public Attributes | |
int | sts = -1 |
Class representing a child process. Normally instances are created by the factory functions popen2() and popen3().
def __init__ | ( | self, | |
cmd, | |||
capturestderr = 0 , |
|||
bufsize = -1 |
|||
) |
The parameter 'cmd' is the shell command to execute in a sub-process. The 'capturestderr' flag, if true, specifies that the object should capture standard error output of the child process. The default is false. If the 'bufsize' parameter is specified, it specifies the size of the I/O buffers to/from the child process.
def poll | ( | self) |
Return the exit status of the child process if it has finished, or -1 if it hasn't finished yet.
Definition at line 72 of file popen2.py.
References Popen3.pid, and Popen3.sts.
def wait | ( | self) |
Wait for and return the exit status of the child process.
Definition at line 85 of file popen2.py.
References Popen3.pid, and Popen3.sts.