Search notes:

crontab

Apparently, after editing a crontab, crontab needs to be run except when the system wide crontab /etc/crontab or files under /etc/cron.d are edited
Note that each line (also the last!) needs to end with a new line character, otherwise, it's considered broken and won't be installed.

Example for /etc/crontab

Note the user field which is not present on other crontabs.
mi = minute, hr= hour, dom = day of month, mon = month, dow = day of week
run.hourly is run 1 minute past the hour.
run.daily is run at 01:16.
run.weekly is run Saturday (6 = Saturday, 7 = Sunday, 1 = Monday etc.)
# mi hr dom mon dow user  command
  01 *  *   *   *   rene  /home/rene/run.hourly
  16 1  *   *   *   rene  /home/rene/run.daily
  31 1  *   *   6   rene  /home/rene/run.weekly
  46 1  1   *   *   rene  /home/rene/run.monthly

See also

cron

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/cr...', 1759488558, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/cron/crontab(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78