Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The realization method of Linux Anacron running Anacron from Cron

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the implementation of Linux Anacron running Anacron from Cron, the content is very detailed, interested friends can refer to, hope to be helpful to you.

If the computer shuts down and restarts less than once in a day, or if you use hibernation mode instead of shutting down the computer completely, you need to run Linux Anacron through the Cron job. You can create an entry in your / etc/crontab file to do this, as follows:

Listing 4. Run Linux Anacron's Cron job

17 * root anacron

This entry will run Linux Anacron on the 17th minute of each hour, and it will check the job and run it if necessary. Note that Anacron only runs its jobs when necessary, so if you run less than once in an hour, it doesn't make much sense unless you can predict the startup time of the system-and in this case, you may need to use Cron to schedule jobs.

When running Linux Anacron through a Cron job, you are not quite sure about the running time of the Anacron job relative to the user behavior. Linux Anacron jobs may run out of CPU time at inappropriate times. In contrast, the Linux Anacron job runs shortly after the user starts the computer and runs Linux Anacron as a system startup process.

About Linux Anacron from Cron to run Anacron implementation method to share here, I hope the above content can be of some help to you, can learn more knowledge. 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report