如何在Linux系统上自动执行任务
How to automate tasks on a Linux system
如何在Linux系統上自動執行任務
https://www.linux.org/threads/how-to-automate-tasks-on-a-linux-system.4144/
You don't have to do that yourself!One of the main tasks of a system administrator is carrying out maintenance work on the server. Most of these tasks can be automated or programmed to be carried out at certain times without user intervention. In this section we'll talk about the two most widely used programs to carry out tasks in this way.
你不用自己動手做所有的事。系統管理員一個主要的任務就是維護服務器。大多數這些任務可以在確定的時間被自動或程序化執行,不需要用戶干預。本節我們討論以這種方式執行的兩個最廣泛使用的程序。
carry out
v:展開,行,執,施行,施
maintenance
n:維修,維護,維持,保持,保養,
intervention
n:干預,干涉,介入,
Use of 'at'
at的使用
'at' is a program to carry out commands that you intend to do only once. It's mostly used for scheduling specific jobs under specific circumstances. If you had to rotate your company's webserver logs every Saturday, 'at' is not the appropriate tool for the job. That would be done best with 'cron', about which we will talk about shortly. Let say your boss, the CTO, called for a meeting with you at 1:00. He wants to know how frequently your external consultants are logging into the network. This is a prime candidate for 'at'.
at是一個程序,用來執行你打算只運行一次的命令。大多數情況它用來在特定情形下調度指定作業。如果你必須在每周六輪換你公司的web服務器日志,at不適合于這項任務。這最好使用 'cron' ,我們將在稍后討論。比方說你的老板,CTO,要在1:00點和你開會。他想知道外部顧問登錄網絡的頻率。這種情況最適合使用at。
intend to
v:有心
circumstances
n:光景,情境,情形,場景
specific
a:特定,具體,
rotate
v:轉動,輪流,輪作,輪換,
let's say
比如說;說一說;
called for a meeting?
召集會議
consultant
n:顧問,醫生
prime candidate?
主要候選人
總結
以上是生活随笔為你收集整理的如何在Linux系统上自动执行任务的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 超图iServer发布一个示例3D场景
- 下一篇: Bochs调试Linux内核 - 定位内