mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 17:56:12 +01:00
12 lines
205 B
Python
Executable File
12 lines
205 B
Python
Executable File
import subprocess
|
|
import json
|
|
|
|
command = 'postqueue -j'
|
|
|
|
result = subprocess.check_output(command, shell=True).decode().split('\n')
|
|
|
|
result = result[0]
|
|
|
|
data = json.loads(result)
|
|
|
|
print(data['queue_name']) |