This is the portion of a bash script that is called from another script and by virtue of it's design uses this else statement.
How do I successfully add an echo or some other means to tell where it is not working? The script continues on to the next portion of the script but I have not idea how to tell if these commands ran.
I tried to add echo ""; after each command and it gives a 'not clean' error I assume b/c of the output.
else
mysql -u dbrootadmin --password=`cat /root/.mysql_pw` << '_EOF_' >"$TMPFILE" 2>&1
FLUSH TABLES WITH READ LOCK;
FLUSH LOGS;
system /usr/local/bin/CreateRootSnapshot
UNLOCK TABLES;
_EOF_