Skip to content

Instantly share code, notes, and snippets.

@blueskyarea
Created April 14, 2016 16:51
Show Gist options
  • Save blueskyarea/b85614dc89c726a3af4897f9b4982ebb to your computer and use it in GitHub Desktop.
Save blueskyarea/b85614dc89c726a3af4897f9b4982ebb to your computer and use it in GitHub Desktop.
# check cron status
(centos)
/etc/init.d/crond status
(ubuntu)
/etc/init.d/cron status
sudo service cron status
# edit own cron setting
crontab -e
# stop send mail to announce
MAILTO=""
# where is a log file
/var/log/cron (centos)
/var/log/syslog (ubuntu)
# access control
# create file to allow and fill out that allowed user name
/etc/cron.allow
# create file to deny and fill out that denied user name
etc/cron.deny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment