Cron Hooks

cron_set_(pre|post).sh

This script runs before/after a User cron is saved (pre/post, respectively).

Environment variables

  • cron schedule
    • minute
    • hour
    • dayofmonth
    • month
    • dayofweek
  • edit (0|1): 1 - old cron job is edited. 0 - new job is created
  • username: owner of cron
  • id: id of cron. set by the order in /var/spool/cron/${user}
  • command: the command to set in the cron, e,g., echo "test" >/dev/null 2>&1
Last Updated: