[Cialug] Cron PHP job

Dave J. Hala Jr. dave at 58ghz.net
Thu Sep 28 15:08:33 CDT 2006


Is there a mysql user for the user that cron is running the job as? 



On Thu, 2006-09-28 at 14:31, Tony Bibbs wrote:
> ...and ensure the user the cron is run as has access to everything it 
> needs.  I'm guess you've done that already, though.
> 
> David Champion wrote:
> > Chris Van Cleve wrote:
> >> I have a cron job set to run every night at 12:05 AM. It's executes a PHP
> >> script that backs up a MySQL database server, pipes the output through
> >> gzip, then removes any backups older than 7 days.
> >>
> >> When run from the command line, it runs perfectly fine. When run through
> >> cron, I get an 8KB gzip file rather than a 20MB gzip file. Any ideas why
> >> the script runs successfully, but doesn't actually dump the databases 
> >> when
> >> executed via cron?
> >>
> >> I'm stumped.
> >>
> > 
> > Check to see if everything in the script is using absolute paths - cron 
> > jobs are really picky about that.
> > 
> > -dc
> > 
> > 
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
-- 

Open Source Information Systems, Inc. (OSIS)
Dave J. Hala Jr., President <dave at osis.us>
641.485.1606



More information about the Cialug mailing list