config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/commands.pyo

łň
h”Rc@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	getstatuscCstdt|ƒƒS(s-Return output of "ls -ld <file>" in a string.sls -ld(Rtmkarg(tfile((s$/usr/local/lib/python2.5/commands.pyR!scCst|ƒdS(s=Return output (stdout or stderr) of executing cmd in a shell.i(R(tcmd((s$/usr/local/lib/python2.5/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(RRtpipettexttsts((s$/usr/local/lib/python2.5/commands.pyR2s

cCs%ddk}t|ii||ƒƒS(Ni˙˙˙˙(RRtpathtjoin(theadtxR((s$/usr/local/lib/python2.5/commands.pytmk2arg?scCsgd|jod|dSnd}x3|D]+}|djo|d}n||}q*W|d}|S(Ns's 's "s\$"`s\t"((Rtstc((s$/usr/local/lib/python2.5/commands.pyRKs


N(t__doc__t__all__RRRRR(((s$/usr/local/lib/python2.5/commands.pys<module>s				
	

Man Man