
    Mh                     @    d Z ddlZddlZddlZddlmZ d Zd Zd ZdS )a  cli-specific implementation of process utilities.

cli - Common Language Infrastructure for IronPython. Code
      can run on any operating system. Check os.name for os-
      specific settings.

This file is only meant to be imported by process.py, not by end-users.

This file is largely untested. To become a full drop-in process
interface for IronPython will probably require you to help fill
in the details.
    N   )	arg_splitc                     t           j                            |           }d|_        d|_        t           j        j        j        |_        d|_        t           j        j	        
                    |          }dS )zY
    system(cmd) should work in a cli environment on Mac OSX, Linux,
    and Windows
    TFN)SystemDiagnosticsProcessStartInfoRedirectStandardOutputRedirectStandardErrorProcessWindowStyleNormalWindowStyleUseShellExecuteProcessStart)cmdpsiregs      Z/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/IPython/utils/_process_cli.pysystemr      s_    
 

-
-c
2
2C!%C $C(;BCOC


$
*
*3
/
/CCC    c                 X   t           j                            |           }d|_        d|_        t           j        j        j        |_        d|_        t           j        j	        
                    |          }|j        }|                                }|j        }|                                }|S )z\
    getoutput(cmd) should work in a cli environment on Mac OSX, Linux,
    and Windows
    TF)r   r   r   r	   r
   r   r   r   r   r   r   StandardOutput	ReadToEndStandardError)r   r   r   myOutputoutputmyErrorerrors          r   	getoutputr   '   s    
 

-
-c
2
2C!%C $C(;BCOC


$
*
*3
/
/C!H!!FGEMr   c                     	 t           j        j                            |            dS # t           j        $ r Y dS t           j        $ r Y dS w xY w)z<
    Check if a process with the given PID (pid) exists
    TF)r   r   r   GetProcessByIdInvalidOperationExceptionArgumentException)pids    r   	check_pidr%   :   sg    	"11#666t+   tt#   uus   $( AAA)	__doc__clrr   os_process_commonr   r   r   r%    r   r   <module>r+      sy     


  
			 ' & & & & &0 0 0  &    r   