
    ^h                     >    S r SSKrSSKrSSKrSSKJr  S rS rS rg)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                    [         R                  R                  U 5      nSUl        SUl        [         R                  R
                  R                  Ul        SUl        [         R                  R                  R                  U5      ng)zM
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      T/home/james-whalen/.local/lib/python3.13/site-packages/IPython/utils/_process_cli.pysystemr      sg    
 


-
-c
2C!%C $C((;;BBCOC



$
$
*
*3
/C    c                    [         R                  R                  U 5      nSUl        SUl        [         R                  R
                  R                  Ul        SUl        [         R                  R                  R                  U5      nUR                  nUR                  5       nUR                  nUR                  5       nU$ )zP
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
2C!%C $C((;;BBCOC



$
$
*
*3
/C!!H!FGEMr   c                      [         R                  R                  R                  U 5        g! [         R                   a     g[         R
                   a     gf = f)z4
Check if a process with the given PID (pid) exists
TF)r   r   r   GetProcessByIdInvalidOperationExceptionArgumentException)pids    r   	check_pidr%   8   sM    	""11#6++ ## s   ), AAA)	__doc__clrr   os_process_commonr   r   r   r%    r   r   <module>r+      s+      
 '0$r   