Qilan2 commited on
Commit
0967ee5
·
verified ·
1 Parent(s): 39c8f02

Update server4.py

Browse files
Files changed (1) hide show
  1. server4.py +1 -1
server4.py CHANGED
@@ -185,7 +185,7 @@ def Oneapi():
185
  # SSH
186
  def run_command(command):
187
  try:
188
- subprocess.run(command, check=True, shell=True)
189
  except subprocess.CalledProcessError as e:
190
  print(f"An error occurred: {e}")
191
  def ssh():
 
185
  # SSH
186
  def run_command(command):
187
  try:
188
+ subprocess.run(command, check=True, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
189
  except subprocess.CalledProcessError as e:
190
  print(f"An error occurred: {e}")
191
  def ssh():