On Friday 13 October 2006 07:55, Grant wrote: > #!/bin/bash [SNIP] > vobcopy -m || exit > mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || exit [SNIP] > > Can you tell me what purpose the "|| exit" portions serve? It's quite common is bash scripts to define a function named die: die() { echo "$@" exit 1 } If you define that at the top of your script you ceplace the above with this: > vobcopy -m || die "vobcopy failed" > mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || die "mkisofs failed" I hope you get the point... -- Bo Andresen