File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/clcagefslib/webisolation/crontab/__pycache__/processor.cpython-311.opt-1.pyc
Back
� ��i � � � d Z ddlZddlZddlZddlZddlZddlmZmZm Z ddl mZ ddlm Z ddlmZmZmZ ddlmZ dd lmZ d Zdde e de e d efd�Z dde e de e de e de e d ef d�ZdS )z,Processing functions for crontab operations.� N)�BinaryIO�Callable�Optional)�is_isolation_enabled� )�ISOLATION_WRAPPER)�parse_crontab_structure�write_crontab_structure�entries_to_str_list)�ParsedCrontabLine)�get_document_rootz/usr/bin/crontab�stdout�stderr�returnc �� � | pt j j } |pt j j }t j t dgd�� � }t t j t j � � � � j � � s;| � |j � � |� |j � � |j S |j dk r!|� |j � � |j S t � � }t! |j � � }|�|j � |g � � }n|j }t) |t+ |� � �� � }d� |� � }| � |� � dS )a� Process CRONTAB_LIST command. Runs 'crontab -l' to get current crontab entries. When isolation is active (PROXYEXEC_DOCUMENT_ROOT is set), only shows entries for the current document root. Removes isolation prefixes from output. Args: stdout: Output stream buffer (defaults to sys.stdout.buffer) stderr: Error stream buffer (defaults to sys.stderr.buffer) Returns: int: Exit code from crontab command, or 1 on error �-lT��capture_outputr N)�without_wrapper� )�sysr �bufferr � subprocess�run�CRONTAB_BINr �pwd�getpwuid�os�getuid�pw_name�write� returncoder r �docroot_sections�get�global_recordsr �bool�join)r r �result� document_root� structure�entries_to_show�result_parts�output_datas ��/builddir/build/BUILDROOT/cagefs-7.6.29-2.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcagefslib/webisolation/crontab/processor.py�process_listr/ sL � � � (�s�z�(�F� � (�s�z�(�F� �^� �d���� � �F� ���R�Y�[�[� 9� 9� A�B�B� !����V�]�#�#�#����V�]�#�#�#�� � � ��A������V�]�#�#�#�� � �%�'�'�M� (�� �6�6�I�� �#�4�8�8���K�K���#�2�� '���]�H[�H[�\�\�\�L��(�(�<�(�(�K� �L�L������1r �stdin�run_funcc �� � | pt j j } |pt j j }|pt j j }|pt j }| � � � }t � � }t t j t j � � � � j � � �rf |t dgd�� � }|j dk r|j nd}t# |� � }t# |� � } g } | j D ]�}t'