import subprocess
process = subprocess.run(["ls", "-a"], capture_output=True)
if process.returncode == 0:
print("success")
else:
print(process.stderr.decode("utf-8"))
import subprocess
process = subprocess.run(["ls", "-a"], capture_output=True)
if process.returncode == 0:
print("success")
else:
print(process.stderr.decode("utf-8"))