So I have this bash script that performs a repair and analyze on a database. It then does
a mysqldump into a chosen directory.
When I call this script in the shell, it works just fine. When launchd calls this script,
the file shows up fine, but the file is empty.
Any idea why this is happening? Would it not run it as an administrator? I realize I'm
running the mysqldump as root however I can change that once I know the script is being
echo "checking Databasename..."
mysqlcheck Databasename --user=root --password=pathogen --auto-repair --analyze
echo "check done"
echo "Backing up "$myOutput"..."
chmod 700 "$myFolder"
mysqldump --user=root --password=mypassword Databasename > "$myOutput"
echo "Databasename backup done"
# echo $myOutput
Rich in Toronto @ VP