Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
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)'''
|
||||
Reference in new issue
Block a user