Re: What controls when /etc/cron.d/ files are run?

Bob McConnell via slackware <[email protected]> Sat, 9 Mar 2024 14:42:17 -0500
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
On 3/7/24 10:59, Rich Shepard via slackware wrote:
> I have a short script to update TeXLive2023 in /etc/cron.d/. My research
> tells me this file should be run by /etc/bin/run-parts but I haven't found
> what controls when it's run.
> 
> A clue stick is needed.
> 
> TIA,
> 
> Rich


That is controlled by crontab. From the shell, type 'crontab -l' to get 
the current users table. You have to do it as root to get the base list. 
Mine looks something like this:

----------cut here---------------------------
# Run the hourly, daily, weekly, and monthly cron jobs.
# Jobs that need different timing may be entered into the crontab as before,
# but most really don't need greater granularity than this.  If the exact
# times of the hourly, daily, weekly, and monthly cron jobs do not suit your
# needs, feel free to adjust them.
#
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
#
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
#
# Run weekly cron jobs at 4:30 on the first day of the week:
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
#
# Run monthly cron jobs at 4:20 on the first day of the month:
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null
----------cut here---------------------------

Take care!

Bob

-- 
slackware mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/slackware