Exception Handling
Hi,
I have written a script to load csv files into a mysql database, however, i would like for the shell script to exit in the event of an error (missing file, load error etc.) - currently if an error is encountered the next statement is processed - This is how i am loading the csv scripts
export id=root
export db=testcsv
export db_add=localhost
mysql -h$db_add -u$id -D$db <loadA.sql
Thanks in advance
Bert
|