ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ V~gc@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}|jdtdtdt|S(s-Return output of "ls -ld " in a string.iNs"commands.getstatus() is deprecatedisls -ld(twarningstwarntDeprecationWarningRtmkarg(tfileR((s-/opt/alt/python27/lib64/python2.7/commands.pyR%s cCst|dS(s=Return output (stdout or stderr) of executing cmd in a shell.i(R(tcmd((s-/opt/alt/python27/lib64/python2.7/commands.pyR0scCszddl}|jd|dd}|j}|j}|dkrSd}n|ddkrp|d }n||fS(s4Return (status, output) of executing cmd in a shell.iNs{ s; } 2>&1tris (tostpopentreadtclosetNone(R R tpipettexttsts((s-/opt/alt/python27/lib64/python2.7/commands.pyR8s     cCs%ddl}t|jj||S(Ni(R Rtpathtjoin(theadtxR ((s-/opt/alt/python27/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-/opt/alt/python27/lib64/python2.7/commands.pyRQs      N( t__doc__RRt__all__RRRRR(((s-/opt/alt/python27/lib64/python2.7/commands.pyts