One Hat Cyber Team
Your IP :
3.140.186.140
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
support
/
lib
/
__pycache__
/
View File Name :
run_cmd.cpython-39.pyc
a �g � @ sJ d dl mZ d dlZdd� Zee d�dd�Zeeedf d�d d �ZdS )� )�UnionNc C s t j�| �ot �| t j�S �N)�os�path�isfile�access�X_OK)�x� r �./opt/support/lib/run_cmd.py�<lambda> � r )�argsc C s: t �� }|sJ �dt|�g}|�| � t �|d |� dS )z os.execv a command with cpuwatchz/usr/local/cpanel/bin/cpuwatchr N)r � cpu_count�str�extend�execv)r Zcores�cmdr r r �cpuwatch_execv s r )� executable�returnc C s0 t �� D ]"}t j�|| �}t|�r| S qd S r )r � get_exec_pathr �join�is_exe)r r Zfullr r r �which s r )�typingr r r �listr r r r r r r �<module> s