First try at shell script

This is my first try at making a shell script. Right now I am having
problems getting it to properly get the exit status from the last
command sent, so it sends success notifications, whatever the result
actually is. See http://stackoverflow.com/questions/12999830/getting-exit-code-of-last-shell-command-in-another-script
for an explanation.