I'm running linuxmint 21.3 Cinnamon (6.0.4) on a Lenovo Notebook (AMD RYZEN processor, RADEON graphics, with kernel 6.8.0.4-generic. I tried running these jobs in /etc/crontab, but they don't execute:
# update background for login screen * * * * * root cp /ddr/tmp/default_background.jpg /usr/share/backgrounds/default_background.jpg #test if crontab is running * * * * * root export DISPLAY=:0 && /usr/bin//zenity --info --text "etc/crontab working for root" * * * * * username export DISPLAY=:0 && /usr/bin/zenity --info --text "etc/crontab working for username" I created a 'root' crontab using sudo contab -e. The first job runs, but not the second:
# update background for login screen * * * * * cp /ddr/tmp/default_background.jpg /usr/share/backgrounds/default_background.jpg #test if crontab is running * * * * * export DISPLAY=:0 && /usr/bin/zenity --info --text "etc/crontab working for root crontab-e" Finally, in my user crontab -e, the 'zenity' job executes just fine:
#test if crontab is running * * * * * export DISPLAY=:0 && /usr/bin/zenity --info --text "etc/crontab working for user crontab-e" Can someone explain why these jobs won't run in /etc/crontab, but only in the personal crontabs for user and root? They used to run on previous versions of linuxmint, and before I updated both my desktop and laptop; both are now running AMD RYZEN processors, if it makes any difference. The desktop is running kernel 5.15.
Many thanks!
SOCIAL SHARE CARD GENERATOR