Tag Info

Hot answers tagged

1

As far as I understand it, cronie's anacron is triggered by cron by executing /etc/cron.hourly/0anacron. But this never happens due to lines 1 and 5 from crontab (they are run only in case 0anacron is not executable). I fixed this by changing /etc/crontab to following 59 * * * * root run-parts /etc/cron.hourly #59 * * * * root [ ! -x ...


1

My preferred solution is a cron-driven python script which primarily takes care of starting the monitored processes when they are not running. It can itself obtain and store the child processes PIDs (and maybe other metadata if needed, for example a last OK iteration timestamp) for later use or just monitor such files that the child processes themselves ...


1

Put the /usr/bin/python in the crontab entry. * * * * * /usr/bin/python /home/cchilders/scripts/python/scripts-in-progress/update_projects.py


1

Cron daemon and light script like a wallpaper changer run once per hour will not have any notable effect on battery life. There might be notable effect only if you run intensive script very often.


1

I dont know about OSX but on linux we have the logger command to add log entries via syslog: $ logger -p cron.info 'some important message'


1

Try escaping the space in your path: 0 15 * * 6 export DISPLAY=:0 && gnome-terminal -e "/mnt/Files/Software/Software\ Customizations/Linux/Scripts/rsync_backup.sh"



Only top voted, non community-wiki answers of a minimum length are eligible