Probably a topic for the "unix" forum here, but we'll try. Type
#crontab -e
at the shell prompt to edit your crontab file.
Here's an example crontab file.
#min hour day mon weekday command
*/5 * * * * /usr/local/bin/php -q /home/me/scr/todo.php > /dev/null 2>&1
30 4 * * * /bin/cp /etc/backup.tar /var/backups/
0 0 1 1 * /bin/echo "happy new year!"
@reboot /usr/local/sbin/ndc start
The cron daemon wakes up every minute and checks if there's any work to do.
In this file, cron will, every five minutes, use the php CLI program (located at /usr/local/bin/php) in "quiet" mode (-q) to execute a php script (re: my todo list) which is in my "scr" subdir in my /home/ directory. Both stdout and stderr and being directed to the bit-bucket; otherwise, cron will mail me any results from running my commands.
At 4:30 a.m., cron will copy "backup.tar" from /etc/ to /var/backups/. And, in this case, if anything goes wrong, I'll get a mail. AFAIK, /bin/cp doesn't return anything if successful.
At midnight on New Year's Eve (I think?) the box will probably mail me the text you see for /bin/echo ... 😃
Finally, each time the box is rebooted, cron will restart the BIND daemon, and will send me mail about it.
HTH,