Category: digital     |    Tags: linux   fcron   cron  

Fcron - Set up, run jobs and troubleshoot

cat /etc/group | grep fcron
# Should output something like this: fcron:x:23
sudo usermod -a -G fcron $USER

You might have to re-login after the last command.

fcrontab -e
SHELL=/usr/bin/zsh
DISPLAY=:0
@ 5 /usr/bin/feh --no-fehbg --bg-fill --randomize ~/Collection/Pictures/wallpapers

What to do in case of permission errors

Remember that the folder /var/spool/fcron should be owned by the user fcron while the fcrontab files inside that folder should be owned by respective users. So if you have permission issues, the following commands may resolve the issues

sudo chown fcron /var/spool/fcron
sudo chown $USER /var/spool/fcron/${USER}.orig

Related Posts

The Simplest Time Logger I Could Have Written
Converting CapsLock to Hyper key with XKB
Arch Linux Sudoers
Dotfile Management - Criteria and Candidates
Alias for updating YADM
© 2019 - 2024 · Home ยท Theme Simpleness Powered by Hugo ·