In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail about the use of linux's anacron command to run commands on a regular basis. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The anacron command can be used to execute commands periodically, with a frequency specified in days, and unlike cron (8), it does not assume that the machine is running continuously. Therefore, it can be used on machines that do not run 24 hours a day to control daily, weekly, and monthly jobs that are usually controlled by cron.
Syntax format: anacron [parameters]
Common parameters:
Reference example
Test the anacron syntax:
[root@linuxcool ~] # cat / etc/anacrontab
Use / root/myspool to store all timestamp information for jobs defined in the / etc/myanacron file:
[root@linuxcool] # anacron-S / root/myspool-t / etc/myanacron
Use the-f parameter to enforce the job, ignoring the timestamp:
[root@linuxcool] # anacron-f / root/myspool
Update only the timestamp of the job to the current date, but do not run any action:
[root@linuxcool] # anacron-d-u about using the anacron command of linux to run the command regularly is shared here. I hope the above can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.