Tools

Crontab

From personal use

  • @reboot and others macros
  • environment variable enforced
    • declare those at the beginning of the crontab
    • e.g. DISPLAY (easy since fixed) or SSH_AUTH_SOCK (more complicated as changing)
  • using cron.pl for Irssi for CognitiveEnvironments#TasksByEfficiency
  • used pycron cron service written in Python on Windows
  • on windows hide commands
    • try START /MIN command
      • Starts a separate window to run a specified program or command.
  • multiple hours for daily synchronization of backups
    • 0 8,12,22 * * * path/to/getbackups_fabien.benetou.fr
      • deprecated for rsync
        • deprecated for rdiff-backup
      • implying that one has authenticated access to the server
      • see also Shell for the usage of 7z, also consider md5sum for checking
    • 0 0,8,12,19 * * * /home/fabien/bin/mirrors_rsync; ratpoison -c 'echo mirrorsrsync_done'
  • crontab -l : print the content of the current cron file
  • crontab -e : edit the current cron file
  • regularly saving my crontab file through crontab -l
    • possible to do diff on it
  • patterns
    • m h dom mon dow command
    • 15 * * * * command : command get executed every minute 15 of the hour

To do

From YetAnotherTutorial

  • this does that
  • this other command is nice

Note

My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.

GreenMarinee theme adapted by David Gilbert, powered by PmWiki