Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
!A?hZ d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlmZ
ddlZ ddlZn
# e$ r dZY nw xY wg dZ ddlZdZn
# e$ r dZY nw xY wej dvZerDddlZddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z) e* g d n@er*dd
l+m,Z- ej. Z/ej0 Z1ej2 Z3ej4 Z5ej6 Z7ndZ-dZ/dZ1dZ3dZ5dZ7ddl8Z8ddl9Z9 G d de: Z; G d
de; Z< G d de; Z=er G d d Z> G d de? Z@n( eAe8dd ZB eCe9d re9jD ZEne9jF ZEerdZGd ZHng ZGd ZHdZIdZJdZKd ZLd ZMd ZNdd d!ZOd" ZPdd d#ZQ G d$ d%eR ZSddddd&d'ZTd( ZUddd)d*ZVddd)d+ZWd, ZX eX ZYdZZ G d- d. Z[dS )/a Subprocesses with accessible I/O streams
This module allows you to spawn processes, connect to their
input/output/error pipes, and obtain their return codes.
For a complete description of this module see the Python documentation.
Main API
========
run(...): Runs a command, waits for it to complete, then returns a
CompletedProcess instance.
Popen(...): A class for flexibly executing a command in a new process
Constants
---------
DEVNULL: Special value that indicates that os.devnull should be used
PIPE: Special value that indicates a pipe should be created
STDOUT: Special value that indicates that stderr should go to stdout
Older API
=========
call(...): Runs a command, waits for it to complete, then returns
the return code.
check_call(...): Same as call() but raises CalledProcessError()
if return code is not 0
check_output(...): Same as check_call() but returns the contents of
stdout instead of a return code
getoutput(...): Runs a command in the shell, waits for it to complete,
then returns the output
getstatusoutput(...): Runs a command in the shell, waits for it to complete,
then returns a (exitcode, output) tuple
N) monotonic)PopenPIPESTDOUTcall
check_callgetstatusoutput getoutputcheck_outputrunCalledProcessErrorDEVNULLSubprocessErrorTimeoutExpiredCompletedProcessTF> wasi
emscripten)CREATE_NEW_CONSOLECREATE_NEW_PROCESS_GROUPSTD_INPUT_HANDLESTD_OUTPUT_HANDLESTD_ERROR_HANDLESW_HIDESTARTF_USESTDHANDLESSTARTF_USESHOWWINDOWABOVE_NORMAL_PRIORITY_CLASSBELOW_NORMAL_PRIORITY_CLASSHIGH_PRIORITY_CLASSIDLE_PRIORITY_CLASSNORMAL_PRIORITY_CLASSREALTIME_PRIORITY_CLASSCREATE_NO_WINDOWDETACHED_PROCESSCREATE_DEFAULT_ERROR_MODECREATE_BREAKAWAY_FROM_JOB)r r r r r r r r STARTUPINFOr r r r r r! r" r# r$ r% ) fork_execc e Zd ZdS )r N)__name__
__module____qualname__ #/usr/lib64/python3.11/subprocess.pyr r { s r- r c V e Zd ZdZddZd Zed Zej d ZdS )r
zRaised when run() is called with check=True and the process
returns a non-zero exit status.
Attributes:
cmd, returncode, stdout, stderr, output
Nc > || _ || _ || _ || _ d S N)
returncodecmdoutputstderr)selfr2 r3 r4 r5 s r. __init__zCalledProcessError.__init__ s" $r- c | j rS| j dk rHd| j dt j | j dS # t $ r d| j | j fz cY S w xY wd| j | j fz S )Nr Command 'z' died with .z)Command '%s' died with unknown signal %d.z.Command '%s' returned non-zero exit status %d.)r2 r3 signalSignals
ValueErrorr6 s r. __str__zCalledProcessError.__str__ s ? /t22
4&.$/1A"B"B"B"BD D
4
4
4B4?"2F4 4 4 4 4
4 DHdoG/ /
/s %9 AAc | j S )z+Alias for output attribute, to match stderrr4 r> s r. stdoutzCalledProcessError.stdout s {r- c || _ d S r1 rA r6 values r. rB zCalledProcessError.stdout r- NN r) r* r+ __doc__r7 r? propertyrB setterr, r- r. r
r
~ sy
/
/
/ X ] ] r- r
c V e Zd ZdZddZd Zed Zej d ZdS )r zThis exception is raised when the timeout expires while waiting for a
child process.
Attributes:
cmd, output, stdout, stderr, timeout
Nc > || _ || _ || _ || _ d S r1 )r3 timeoutr4 r5 )r6 r3 rN r4 r5 s r. r7 zTimeoutExpired.__init__ s" r- c ( d| j d| j dS )Nr9 z' timed out after z seconds)r3 rN r> s r. r? zTimeoutExpired.__str__ s 4<<<) *r- c | j S r1 rA r> s r. rB zTimeoutExpired.stdout s
{r- c || _ d S r1 rA rD s r. rB zTimeoutExpired.stdout rF r- rG rH r, r- r. r r sy * * * X ] ] r- r c * e Zd ZddddddddZd ZdS )r&