NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Digsy
May 31, 2013Aspirant
test -e /usr/sbin/anacron
Looking inside crontab last night to see how the daily, weekly etc jobs are called, I see that each line has the form:
I understand the bit after the || but what does the first part do? Is it testing for the presence of a file called anacron? I've done a whereis on this and I don't appear to have one on my NAS at all.
root test -e /usr/sbin/anacron || nice run-parts --report /etc/cron.daily
I understand the bit after the || but what does the first part do? Is it testing for the presence of a file called anacron? I've done a whereis on this and I don't appear to have one on my NAS at all.
1 Reply
Replies have been turned off for this discussion
- StephenBGuru - Experienced UserIf the file /usr/bin/anacron does not exist, then it runs the second part (the || indicates that it is a "false" condition)
I think the premise is that if anacron exists, it is taking care of the periodic scheduling. http://anacron.sourceforge.net/
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!