In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to set the execution time of at". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to set the execution time of at".
The at command is an one-time scheduled task, and the at daemon atd runs in background mode, checking the job queue to run the job. The atd daemon checks a special directory on the system to get jobs submitted by the at command. By default, the atd daemon checks the directory every 60 seconds, checks the job run time when a job is available, and runs the job if the time matches the current time.
Use of the at command
At command format: the at [- f filename] time,-f parameter is used to specify the shell script name, and time is used to specify the run time.
# run the test13.sh script immediately # the at command displays the id and running time assigned to the job $at-f test13.sh nowjob 1 at Sat Dec 17 23:26:09 2010s atq command can view waiting jobs in the system $atq1 Sat Dec 17 23:26:00 20162 Sat Dec 17 23:31:00 20163 Sat Dec 17 23:32:00 2010201 atrm command can delete waiting jobs in the system Followed by the job to be deleted id$ atrm 1 $atq2 Sat Dec 17 23:31:00 20163 Sat Dec 17 23:32:00 20164 Sat Dec 17 23:36:00 20165 Sat Dec 17 23:37:00 2016at's execution time setting can accept the standard hour time, hh:mm (hours: minutes) of the time specified. If that time has passed, it will be executed the next day. For example, 13:12. A specific namable time, such as now,noon,teatime (usually 4 p.m.) and other vague words to specify the time. AM/PM indicator, using a 12-hour timing system, such as 10:10 AM. Standard date format, MMDDYY,MM/DD/YY, etc., for example, 12-31-16. Time increment, such as now+25 min,10:17+7 days. You can use today and tomorrow to specify the time. Matters needing attention
Mac at command default US time, reload com.apple.atrun.plist, terminal operation:
Sudo launchctl unload-F / System/Library/LaunchDaemons/com.apple.atrun.plistsudo launchctl load-F / System/Library/LaunchDaemons/com.apple.atrun.plist Thank you for your reading, this is the content of "how to set the execution time of at". After the study of this article, I believe you have a deeper understanding of how to set the execution time of at, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.