Mixing Python And Bash

Tom Purl tom at tompurl.com
Mon Nov 8 21:17:19 CET 2004

I just wrote a Python script that is going to be called from bash script.
 If the Python script fails, I want the bash script to also stop running. 
 Unfortunately, I can't seem to get that to work.  Here's the script so

# custom python script
/usr/bin/python /home/username/Dev/Python/packZODB.py \ 
  -s"gsgmc.sigma.zettai.net" -b 7

# next program

I don't want the second program to run if the first program fails.  Isn't
that the default in bash?  If someone could please point me in the right
direction regarding this problem, I would really appreciate it.

Thanks in advance!

Tom Purl

More information about the Python-list mailing list