In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What is the role of the at command in Linux, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
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
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.