Server IP : 103.53.40.154 / Your IP : 18.224.31.82 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /../lib64/tls/../lua/../python2.7/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
� m��fc @ si d Z d d l m Z e d d d �[ d d d g Z d � Z d � Z d � Z d � Z d � Z d 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.] i����( t warnpy3ksU the commands module has been removed in Python 3.0; use the subprocess module insteadt stackleveli t getstatusoutputt getoutputt getstatusc C s3 d d l } | j d t d � t d t | � � S( s- Return output of "ls -ld <file>" in a string.i����Ns"