I wrote python script to run bash script it runs it with this line:
result = subprocess.Popen(['./test.sh %s %s %s' %(input_file, output_file, master_name)], shell = True)
if result != 0:
print("Sh*t hits the fan at some point")
return
else:
print("Moving further")
Now I having troubles when bash script fails, python doesn't continue doing what it was doing it just ends. How can I make it so that python script would continue running after bash fails?