b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/popen2.pyo
Size8.81 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:32
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc
@s[dZddkZddkZddkZeidedd�dddgZyeid �ZWne e
fj
o
d
ZnXgZ d �Z d dd
��YZ
de
fd��YZeid djpeidjo7[
[ddd�Zddd�Zddd�ZnAddd�Zddd�Zddd�Zeid dg�dS(snSpawn 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.
iÿÿÿÿNs<The popen2 module is deprecated. Use the subprocess module.t
stacklevelitpopen2tpopen3tpopen4t SC_OPEN_MAXicCs]xVtD]M}|idti�djo+yti|�WqUtj
oqUXqqWdS(Nt
_deadstatei(t_activetpolltsystmaxinttremovet
ValueError(tinst((s/usr/lib64/python2.6/popen2.pyt_cleanupstPopen3cBsJeZdZdZedd�Zd�Zd�Zdd�Z d�Z
RS(s{Class representing a child process. Normally, instances are created
internally by the functions popen2() and popen3().iÿÿÿÿc
CsCt�||_ti�\}}ti�\}}|oti�\}} nti�|_|idjoLti|d�ti|d�|oti| d�n|i|�nti|�ti |d|�|_
ti|�ti |d|�|_ |o)ti| �ti |d|�|_ n
d|_ dS(sdThe parameter 'cmd' is the shell command to execute in a
sub-process. On UNIX, 'cmd' may be a sequence, in which case arguments
will be passed directly to the program without shell intervention (as
with os.spawnv()). If 'cmd' is a string it will be passed to the shell
(as with os.system()). 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.iiitwtrN(R
tcmdtostpipetforktpidtdup2t
_run_childtclosetfdopenttochildt fromchildtchilderrtNone(
tselfRt
capturestderrtbufsizetp2creadtp2cwritetc2preadtc2pwriteterroutterrin((s/usr/lib64/python2.6/popen2.pyt__init__(s*
 


cCsI|idti�|idjo"tdj oti|�qEndS(NRi(RRR tstsRRtappend(R((s/usr/lib64/python2.6/popen2.pyt__del__Js
cCs`t|t�odd|g}ntidt�zti|d|�Wdtid�XdS(Ns/bin/shs-ciii(t
isinstancet
basestringRt
closerangetMAXFDtexecvpt_exit(RR((s/usr/lib64/python2.6/popen2.pyRRs cCs�|idjovy?ti|iti�\}}||ijo
||_nWq�tij
o!|dj o
||_q�q�Xn|iS(shReturn the exit status of the child process if it has finished,
or -1 if it hasn't finished yet.iN(R(RtwaitpidRtWNOHANGterrorR(RRRR(((s/usr/lib64/python2.6/popen2.pyR[s
cCs?|idjo(ti|id�\}}||_n|iS(s9Wait for and return the exit status of the child process.i(R(RR1R(RRR(((s/usr/lib64/python2.6/popen2.pytwaitis
N( t__name__t
__module__t__doc__R(tFalseR'R*RRRR4(((s/usr/lib64/python2.6/popen2.pyR"s"  tPopen4cBseZdZdd�ZRS(iÿÿÿÿcCsât�||_ti�\}}ti�\}}ti�|_|idjoAti|d�ti|d�ti|d�|i|�nti|�ti |d|�|_
ti|�ti |d|�|_ dS(NiiiRR( R
RRRRRRRRRRR(RRR R!R"R#R$((s/usr/lib64/python2.6/popen2.pyR'ws 

N(R5R6RRR'(((s/usr/lib64/python2.6/popen2.pyR9tsitwintos2emxttcCs%ti|||�\}}||fS(s¸Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
be a sequence, in which case arguments will be passed directly to the
program without shell intervention (as with os.spawnv()). If 'cmd' is a
string it will be passed to the shell (as with os.system()). If
'bufsize' is specified, it sets the buffer size for the I/O pipes. The
file objects (child_stdout, child_stdin) are returned.(RR(RR tmodeRR((s/usr/lib64/python2.6/popen2.pyR�scCs+ti|||�\}}}|||fS(sÆExecute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
be a sequence, in which case arguments will be passed directly to the
program without shell intervention (as with os.spawnv()). If 'cmd' is a
string it will be passed to the shell (as with os.system()). 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.(RR(RR R=RRte((s/usr/lib64/python2.6/popen2.pyR�scCs%ti|||�\}}||fS(s¿Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
be a sequence, in which case arguments will be passed directly to the
program without shell intervention (as with os.spawnv()). If 'cmd' is a
string it will be passed to the shell (as with os.system()). If
'bufsize' is specified, it sets the buffer size for the I/O pipes. The
file objects (child_stdout_stderr, child_stdin) are returned.(RR(RR R=RR((s/usr/lib64/python2.6/popen2.pyR¡scCs"t|t|�}|i|ifS(s¸Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
be a sequence, in which case arguments will be passed directly to the
program without shell intervention (as with os.spawnv()). If 'cmd' is a
string it will be passed to the shell (as with os.system()). If
'bufsize' is specified, it sets the buffer size for the I/O pipes. The
file objects (child_stdout, child_stdin) are returned.(RR8RR(RR R=R ((s/usr/lib64/python2.6/popen2.pyR«scCs(t|t|�}|i|i|ifS(sÆExecute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
be a sequence, in which case arguments will be passed directly to the
program without shell intervention (as with os.spawnv()). If 'cmd' is a
string it will be passed to the shell (as with os.system()). 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.(RtTrueRRR(RR R=R ((s/usr/lib64/python2.6/popen2.pyRµscCst||�}|i|ifS(s¿Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
be a sequence, in which case arguments will be passed directly to the
program without shell intervention (as with os.spawnv()). If 'cmd' is a
string it will be passed to the shell (as with os.system()). If
'bufsize' is specified, it sets the buffer size for the I/O pipes. The
file objects (child_stdout_stderr, child_stdin) are returned.(R9RR(RR R=R ((s/usr/lib64/python2.6/popen2.pyR¿s((R7RRtwarningstwarntDeprecationWarningt__all__tsysconfR.tAttributeErrorR RR
RR9tplatformRRRtextend(((s/usr/lib64/python2.6/popen2.pyt<module>s.    
 
R$