debug a linux script

December 29, 2010

when running a script in linux be sure to run it like this:

# sh -x /root/Dropbox/jobs/backupwordpress.sh

Notice the sh -x. This is what allows you to see what’s going on in the job