Monday, 20 October 2025

fcron

http://fcron.free.fr/doc/en/fcrontab.5.html


        Entries based on elapsed system up time
----------------------------------------------------
# Get our mails every 30 minutes
@ 30 getmails -all

# make some security tests every 48 hours of system up time,
# force a mail to be sent to root even if there is no output
@mailto(root),forcemail 2d /etc/security/msec/cron-sh/security.sh

        Some examples of entries based on time and date
----------------------------------------------------
# run mycommand at 12:05, 12:35, 13:05, 13:35,
# 14:05 *and* 14:35 everyday
& 05,35 12-14 * * * mycommand -u me -o file

# get mails every hour past 20, 21, 22, and 24 minutes.
20-24~23 * * * * getmail

# save our work of the day every night at 03:45 with a low priority
# unless we are sunday, mail the output to jim and run that job
# at startup if computer was down at 03:45
&nice(10),mailto(jim),bootrun 45 03 * * *~0 "save --our work"

        Entries run periodically
----------------------------------------------------
# will run the command once each night either between 21:00 and 23:59, or between 3:00 and 5:59
# (it will run as soon as possible. To change that, use option random) and won't send mail (because option mail is set to "no").
%nightly,mail(no) * 21-23,3-5 echo "a nightly entry"

# Run once a day whenever system is up.
%daily * 1-23 sh /root/bin/automysqlbackup
%daily * 1-23 sh /root/bin/ntpupdate
%daily * 1-23 sh /root/bin/tmpwatch

fcrondyn - dialog dyn-namically with a running fcron daemon
As root:
fcrondyn
>ls root   # to list scheduled jobs.

ccze

 ccze - log colorizer  sudo tail -f /var/log/syslog | ccze