…with an open minded approach

Posts tagged “cron

Quick crontab syntax

Before I re-google it again, I leave it here resumed (shamelessly copied and modified – see below)

Crontab syntax

Be carefull:

  • command is executed by sh (not bash), in minimal environment ($PATH changed)
  • save command output with sh redirection

    … >>stdout_and_stderr.txt  2>&1

    as normal bash redirection “… &>>stdout_and_stderr.txt” does not work inside crontab

All credit goes to it’s sources, such as http://www.adminschoice.com/crontab-quick-reference
Also interesting (specially about steps) : http://livecronjobs.com/