Joe
Cron jobs
Moderator: General Moderators
man cron...
SYNOPSIS
crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }
crontab is the program used to install, deinstall or list the tables used to drive the cron(8) daemon in Vixie Cron. Each user can
have their own crontab, and though these are files in /var/spool/cron/crontabs, they are not intended to be edited directly.
you could generate the file with php... and then pass that to the crontab binary.....
SYNOPSIS
crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }
crontab is the program used to install, deinstall or list the tables used to drive the cron(8) daemon in Vixie Cron. Each user can
have their own crontab, and though these are files in /var/spool/cron/crontabs, they are not intended to be edited directly.
you could generate the file with php... and then pass that to the crontab binary.....
If you want to do something hourly,daily,weekly or monthly, some (all?) installations of Linux also have cron.hourly/, cron.daily/, cron.weekly/, and cron.monthly/ directories in the /etc/ (or wherever crontab is found) directory. Simply dumping executable files in there will have them executed at the appropriate time. I find this much easier than goofing with crontab.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.