관리-도구
편집 파일: __init__.cpython-311.opt-1.pyc
� �EBg� � � � d dl Z dd�ZdS )� NFc � � g }|� | � � |� |� � t j |t j t j d�� � 5 }|� � � \ }}|j }ddd� � n# 1 swxY w Y |r)||� � � |� � � fS ||� � � fS )ac Executes supplied utility with supplied parameters :param util_path: string with path to callable utility :param params: utility parameters :param stderr: trigger to return stderr or not :return: Cortege (ret_code, cagefsctl_stdout) if stderr is False Cortege (ret_code, cagefsctl_stdout, cagefsctl_stderr) otherwise T)�stdout�stderr�textN)�append�extend� subprocess�Popen�PIPE�communicate� returncode�strip)� util_path�paramsr �args�proc�out�err�retcodes �py/cllimits/lib/__init__.py�exec_utilityr s � � �D��K�K� �����K�K����� � ������ � � � � "� ��#�#�%�%���S��/��"� "� "� "� "� "� "� "� "� "� "���� "� "� "� "� � 1��� � ���S�Y�Y�[�[�0�0��C�I�I�K�K��s �B�B�B)F)r r � � r �<module>r s1 �� � � � � � � � � � r