I can’t get cron
to work on my Fedora Silverblue 35. As far as I can tell, it’s installed:
> systemctl status crond.service
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor pre>
Active: active (running) since Fri 2022-02-18 03:52:03 CET; 34s ago
Main PID: 1069 (crond)
Tasks: 1 (limit: 77007)
Memory: 1.1M
CPU: 5ms
CGroup: /system.slice/crond.service
└─1069 /usr/sbin/crond -n
Feb 18 03:52:03 fedora systemd[1]: Started Command Scheduler.
Feb 18 03:52:03 fedora crond[1069]: (CRON) STARTUP (1.5.7)
Feb 18 03:52:03 fedora crond[1069]: (CRON) INFO (Syslog will be used instead of>
Feb 18 03:52:03 fedora crond[1069]: (CRON) INFO (RANDOM_DELAY will be scaled wi>
Feb 18 03:52:03 fedora crond[1069]: (CRON) INFO (running with inotify support)
Here’s my test crontab:
> crontab -l
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
* * * * * danut touch /var/home/danut/x
As far as I understand this should run every minute and create a test file in my home dir, but nothing happens and there’s nothing in the logs (the output of systemctl
above shows the whole logs).
What am I missing?