Files
CyberPanel/plogical/test.py
2022-06-12 14:52:17 +05:00

6 lines
198 B
Python

import subprocess, shlex
command = 'yum list | grep lsphp | xargs -n3 | column -t'
result = subprocess.check_output(command, shell=True).splitlines()
for item in result:
print(item.split(b' '))