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--
Editor to share with you how to use the AT command, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
In the daily management work, it is often required that a certain service can be turned on and off regularly. The AT command provided by Windows does this. The RAS service timing switch can be realized by using it, and the specific steps are as follows:
1. Enter services.msc in Settings-Control Panel-Services or running to start the Schedule service, and set its startup mode property to automatic.
two。 Use the AT command in the command window to set the scheduled startup and shutdown of the service program.
The format of the AT command is as follows:
AT [\ computername] time [/ interactive] [/ every:date [,?] | next:date [,?]] "command"
Parameter meaning:
No parameters: displays all scheduled commands that have been set.
\\ computername: indicates the name of the computer on which the command was executed, or executed locally if omitted.
Time: command execution time
/ interactive: whether to interact with the user who is logging in when the program is executed.
/ every:date [,?]: specify the date on which the program will be executed (such as every Tuesday, Wednesday: / every:T,W), the 2nd of every month: / every:1,2).
Next:date [,?]: specifies the date of the next execution of the program.
"command": regularly executed Windows NT commands, programs, batches.
AT [\ computername] [[id] [/ delete] [/ yes]]
Parameter meaning:
Id: the identification number assigned to the plan command, which can be found by the AT command with no parameters.
/ delete: cancels the specified schedule commands, and if omitted by id, cancels all schedule commands.
/ yes: force the yes to answer all canceled queries.
Usage one, start and shut down a service on a regular basis
Taking the RAS service as an example, let the service start at 19:00 every day and shut down at 7:30 the next day, with the following AT command:
AT 19:00 / every:M,T,W,Th,F,S,Su net start "remote access server"
AT 7:30 / every:M,T,W,Th,F,S,Su net stop "remote access server"
Usage two, turn off the computer at a fixed time.
1. Write a batch file with the following contents:
Shutdown-s-t 60
And then schedule the task to execute it regularly.
two。 Establish an automatic execution entry:
At 22:00 shutdown-s-t 30
In this way, the machine will shut down automatically at 22:00 every night and will be prompted for 30 seconds before shutting down.
The shutdown program is included in win2k's Rkit, and winxp and win2003 come with it by default.
3. Execute regularly under cmd and append to the file
At 17:10 cmd / c "whoami > > c:\ test.txt"
4. Automatic shutdown at 0: 00 on the 1st, 5th, 10th, 15th and 20th of each month
At 00:00 / every:1,5,10,15,20 shutdown / f / s / t 0
Shut down automatically at 23:00 every Monday
At 23:00 / every:Monday shutdown / f / s / t 0
6. Timing and remote shutdown
At 00:00 shutdown-s-t-m\\ ip
7. View and delete scheduled tasks
Executing at without any parameters will list the content that has been set, write down the status ID number, such as 1 in this example, and then enter:
At 1 / delete can also be abbreviated to at 1 / d
Using the / d parameter without a serial number will delete all settings. If you want to delete all settings without confirmation, you can use: at / d / y
The above is all the contents of this article "how to use AT commands". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.