In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use the linux at command on linux to start the program regularly". In the daily operation, I believe that many people have doubts about how to use the linux at command to start the program regularly on linux. Xiaobian consulted all kinds of materials and sorted out a simple and easy-to-use operation method. I hope it will be helpful to answer the doubt of "how to use the linux at command to start the program regularly on linux". Next, please follow the editor to study!
Cron is used to schedule repetitive tasks, and linux at commands are used to schedule one-time tasks within a specified time. To use the linux at command, you must have the at RPM package installed and the atd service must be running. You can start the atd service using service atd start. To determine whether the package is installed, use the rpm-Q at command. To determine whether the service is running, use the / sbin/service atd status command.
Configure the linux at command job method:
To schedule an one-time job within a specified time, type the at time command. The time here is the time to execute the command. The time parameter can be any of the following formats:
HH:MM format-for example, 04:00 stands for 4:00AM. If the time has passed, it will be executed at this time of the next day.
Midnight-stands for 12:00AM.
Noon-stands for 12:00PM.
Teatime-stands for 4:00PM.
English month name date year format-for example, January 15 2002 represents January 15, 2002. The year is optional.
MMDDYY, MM/DD/YY, or MM.DD.YY format-for example, 011502 represents January 15, 2002.
Now + time-time is in minutes, hours, days, or weeks. For example, now + 5 days represents that the command should be executed at this time five days later.
After you type the linux at command and its time parameters, the at > prompt appears. Type the command to execute, press the [Enter] key, and then type Ctrl-D. You can specify multiple commands by typing each command and pressing the [Enter] key. After typing all the commands, press the [Enter] key to go to a blank line, and then type Ctrl-D. Alternatively, you can type the shell script at the prompt, press the [Enter] key after each line of the script, and then type Ctrl-D at the blank line to exit.
Application example:
At 19:00
At > / usr/local/f-prot/f-prot / mnt/winc-report=/root/.xfprot/xfprot.log-dumb-archive-noserver
At >
Job 1 at 2007-03-09 19:00
At this point, the study on "how to use the linux at command to start the program regularly on linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.