knowning how much time is left before cron weekly runs?
I am on debian 6.
Any way to see how many days are left before the cron weekly starts?
The system crontab is usually defined in /etc/crontab/. It’s here that the time interval for cron.weekly, cron.daily, etc is defined. My /etc/crontab/ looks like:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
So my cron.weekly will run at 6:47 on the 7th day of the week.
Edit:
The above information only applies to scripts in the /etc/cron.weekly directory. As pointed out by Iain, @weekly is defined to run at midnight on Sunday.
Check more discussion of this question.
Related posts:
- apache restarted/reloaded config by itself automatically, why?
- Weekly cron executing 2 times:
- Mounting cron configuration files – is it possible?
- Cron runs my script but script doesn’t do anything, something to do with mail error??? “got status 0x004b#012”
- What user do scripts in the cron folders run as? (i.e. cron.daily, cron.hourly, etc)
Leave a comment
Recent Posts
- SCP transfer only modified files
- How can I automate clearing and resetting a Linux user’s home directory to a default?
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





