[nycphp-talk] [ot] mysqldump cron problem

Chris Weyl cweyl at
Sun Feb 19 14:49:25 EST 2006

On 2/19/06, Hans Kaspersetz <lamolist at> 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.


More information about the talk mailing list