When you edit a file with emacs the default behaviour is to make a backup file of the same name but with a tilda on the end, eg. myfile~
I have frquently been caught out after editing a file in /etc/cron.daily and then find that the old backup is run as well as the newly edited one.
A simple fix is to add:
GLOBIGNORE="*~" in /usr/sbin/run-crons.
--- /usr/portage/sys-process/cronbase/files/run-crons-0.3.2 2007-06-24 21:40:42.000000000 +0100
+++ /usr/sbin/run-crons 2008-09-09 17:12:01.000000000 +0100
@@ -91,6 +91,7 @@
for SCRIPT in $CRONDIR/* ; do
if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then
Created attachment 165038 [details, diff]
Patch to ignore emacs backup files from being run by cron
Thanks for the patch, assigning to maintainers.
this looks so trivial, i am inclined to include it.
included in cronbase-0.3.3.
This patch introduced bug 280261.