List:Backup« Previous Message
From:VP Date:July 3 2013 7:08pm
Subject:Re: OSX Launchd Initiating Bash Script
View as plain text  
Solved.  

Even with the root's .bash_profile including the directories for MySQL in the PATH, I had
to point directly to mysqld.

Cheers


On 2013-07-03, at 1:37 PM, VP <lists@stripped> wrote:

> Hiya folks.
> 
> 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 called properly.  
> 
> Cheers
> 
> (script below)



_____________
Rich in Toronto @ VP





Thread
OSX Launchd Initiating Bash ScriptVP3 Jul
  • Re: OSX Launchd Initiating Bash ScriptVP3 Jul