• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

What does crontab edit?

JP Kelly

Regular Pleskian
If I enter on command line # cat /etc/crontab
I get:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
27 * * * * root run-parts /etc/cron.hourly
0 0 * * * root run-parts /etc/cron.daily
14 3 * * 0 root run-parts /etc/cron.weekly
40 2 23 * * root run-parts /etc/cron.monthly

But if i try crontab -e
I get:

MAILTO=***@****.***
*/6 * * * * /usr/bin/php -q /var/www/vhosts/smallgod.net/httpdocs/secure/info/loadavg/logger.php >/dev/null 2>&1
0 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/secur-check
0 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/send-report weekly
10 1 * * * /usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats
15 3 * * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats day
15 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats week
15 1 1 * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats month
15 1 1 * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats year
20 5 * * * /usr/local/psa/libexec/modules/watchdog/cp/clean-events
0 5 * * 7 /usr/local/psa/libexec/modules/watchdog/cp/clean-reports
1 2 * * * php -q /var/www/vhosts/smallgod.net/httpdocs/secure/clients/admin/cron.php
5 2 * * * php -q /var/www/vhosts/smallgod.net/httpdocs/secure/clients/crons/domainsync.php
30 1 * * * sa-update --gpgkey 6C6191E3 --channel sought.rules.yerp.org --channel updates.spamassassin.org -D
30 2 * * * /usr/bin/asl -u
45 3 * * * /usr/local/sbin/xquota

How do I edit the contents of /etc/crontab ?
 
Last edited:
Hello,

Can you please let us know why you want to edit this master (/etc/contab) cron job file ?
 
Hello,

If you want to change the time of /etc/cron.daily then you will have to update your time in /etc/anacrontab file. Please check this file and update the time which you wan to setup
 
Hello,

If you want to change the time of /etc/cron.daily then you will have to update your time in /etc/anacrontab file. Please check this file and update the time which you wan to setup
There is no /etc/anacrontab file.
 
Back
Top