asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T 3 Ui~@sDddlZddlZddZddZddZdd Zd d Zd d ZdS)NcCs|ddkr|dkrdSdS)Nr")lineisquotfrr-/usr/share/lve/modlscapi/user/exec_command.py first_quotsrcCs$|t|ddkr |dkr dSdS)Nrrr)len)rrrrr last_quot sr cCs|jd}d}d}g}xtt|D]p}||dkr$t|||dkrTd}||}q$t|||dkrd}|d||7}|j|q$|j||q$Wt|dS)N rr)splitranger rr appendprint)commandZisquotresresultirrr parse_commands"   rcCsg}yNtj|dtjtjd}x2|jj}|s.P|jdkr|j|jjqWWn2tk r}zt dt |WYdd}~XnX|S)NT)shellstdoutstderrr zCall process error: ) subprocessPopenPIPErreadlinestriprdecode Exceptionrstr)rrpoutputinstrrr exec_command's  "r$cCs tj|S)z Run command via os.system and return its exit status :param command: Command to execute in a subshell :return: Exit status of the command process )ossystem)rrrrexec_command_out6sr'cCs&t|}x|D]}||kr|SqWdS)Nr)r$)rZ substringrrrrrexec_command_find_substring@s  r))r%rrr rr$r'r)rrrrs