In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 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 using the at command of linux to schedule tasks at one time. 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 at command allows you to specify the time to run the script, and at's daemon, atd, runs in background mode, checking a special directory on the system to get the submitted jobs of the at command. By default, the atd daemon checks the directory every 60 seconds. The running time of the job is checked when there is a job, and if it matches the current time, the job is run.
Syntax format: at [parameters]
Common parameters:
Atq view waiting jobs in the system-d delete waiting jobs in the system (equivalent to the atrm command)-c print the contents of the task-Q use the specified queue-f to submit the specified file to the waiting job-t submit the running job in the form of time
Reference example
View the waiting jobs in the system:
[root@linuxcool ~] # atq
Use "at-d" or "atrm" (equivalent) to specify id to delete waiting jobs from the system, where id is the first line of sequential numbers output by the "atq" command:
[root@linuxcool ~] # at-d 1 [root@linuxcool ~] # atrm 1
Assuming that a linuxcool.sh script exists, run it immediately:
[root@linuxcool] # at-f linuxcool.sh now
Run the linuxcool.sh script after 25 minutes:
[root@linuxcool] # at-f linuxcool.sh now+25 min
Run the linuxcool.sh script at 10:11:
[root@linuxcool] # at-f linuxcool.sh 10:11
Run the linuxcool.sh script on July 27th, 2019:
[root@linuxcool ~] # at-f linuxcool.sh 07 linuxcool.sh 27 at 2019 about using the at command of linux to schedule tasks at one time, so much for sharing here. I hope the above content can be helpful to you and 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.