Files
qt5-legatus-legacy/Lts/Tools/JustusTimeline/cmdw.py
T
2026-08-13 18:33:10 +02:00

21 lines
388 B
Python
Executable File

import subprocess
def run_command(command):
process = subprocess.Popen(command, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, error = process.communicate()
return output.decode(), error.decode()
command = "psql lts_ets_pro -f statement3.spl > event_result.txt"
'''
output, error = run_command(command)
print(output)
if error:
print(error)'''