NYCPHP Meetup

NYPHP.org

[nycphp-talk] [ot] mysqldump cron problem

Chris Weyl cweyl at alumni.drew.edu
Sun Feb 19 14:49:25 EST 2006


On 2/19/06, Hans Kaspersetz <lamolist at cyberxdesigns.com> wrote:
> I created a bash script that is supposed to dump one of my databases.
> When I run the bash script from the cli it dumps no problem.  When I
> call the script from cron, I get an empty file in the destination
> directory.  Anyone have any ideas?

I did something like this myself.  If I remember correctly, I also ran
into this problem until I defined my $HOME dir, as scripts executed
via cron do not have the full user initialization that you get when
you actually log into a *nix box.

                  -Chris



More information about the talk mailing list