I have a bash script that executes a number python scripts. Is there a way to prevent the execution of script_2.py if 1_script.py throws back an exception?
#!/usr/bin/bash
python Desktop/code/1_script.py
python Desktop/code/2_script.py
python Desktop/code/3_script.py
Thanks very much!