3 �2�g������������������@���s���d�dl�Z�dd��ZdS�)�����Nc�������������C���s<���t�j|�t�jt�jddd�}|j��\}}|j|jd�|jd�fS�)z�Run system command in a subprocess Args: cmd: command to execute Returns: Tuple of (exit code, std_out, std_err) T)�stdout�stderr�shellZuniversal_newlines� )� subprocess�Popen�PIPEZcommunicate� returncode�rstrip)�cmd�procZstd_outZstd_err��r ����E/lfs/h1/ops/prod/packages/aqm.v7.0.11/ush/python_utils/run_command.py�run_command���s����r���)r���r���r ���r ���r ���r����<module>���s���