Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | Popen3 |
class | Popen4 |
Functions | |
def | popen2 |
def | popen3 |
def | popen4 |
Variables | |
list | __all__ = ["popen2", "popen3", "popen4"] |
int | MAXFD = 256 |
list | _active = [] |
Spawn a command with pipes to its stdin, stdout, and optionally stderr. The normal os.popen(cmd, mode) call spawns a shell command and provides a file interface to just the input or output of the process depending on whether mode is 'r' or 'w'. This module provides the functions popen2(cmd) and popen3(cmd) which return two or three pipes to the spawned command.
def popen2 | ( | cmd, | |
bufsize = -1 , |
|||
mode = 't' |
|||
) |
Execute the shell command 'cmd' in a sub-process. If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout, child_stdin) are returned.
Definition at line 119 of file popen2.py.
References os.popen2().
def popen3 | ( | cmd, | |
bufsize = -1 , |
|||
mode = 't' |
|||
) |
Execute the shell command 'cmd' in a sub-process. If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout, child_stdin, child_stderr) are returned.
Definition at line 126 of file popen2.py.
References os.popen3().
def popen4 | ( | cmd, | |
bufsize = -1 , |
|||
mode = 't' |
|||
) |
Execute the shell command 'cmd' in a sub-process. If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout_stderr, child_stdin) are returned.
Definition at line 133 of file popen2.py.
References popen2(), popen3(), and os.popen4().