Skip to content
DirectAdmin Docs
Search
K
Main Navigation
Forums
Contact Us
Sections
Getting Started
DirectAdmin
Operation system level
CustomBuild 2.0
Other hosting services
Web Servers
Developer
Changelog
Appearance
Menu
Return to top
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/$
command
: the command to set in the cron, e,g., echo "test" >/dev/null 2>&1