
    f                     >    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y)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                  j                  |       }d|_        d|_        t         j                  j
                  j                  |_        d|_        t         j                  j                  j                  |      }y)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      U/var/www/cvtools/html/venv/lib/python3.12/site-packages/IPython/utils/_process_cli.pysystemr      sg    
 


-
-c
2C!%C $C((;;BBCOC



$
$
*
*3
/C    c                    t         j                  j                  |       }d|_        d|_        t         j                  j
                  j                  |_        d|_        t         j                  j                  j                  |      }|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
2C!%C $C((;;BBCOC



$
$
*
*3
/C!!H!FGEMr   c                     	 t         j                  j                  j                  |        y# t         j                  $ r Y yt         j
                  $ r Y y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%   8   sM    	""11#6++ ## s   ), AAA)	__doc__clrr   os_process_commonr   r   r   r%    r   r   <module>r+      s+      
 '0$r   