473,386 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Shutdown system after 3 minutes

How can I shutdown the system after 3 minutes automatically.
May 14 '20 #1
3 9442
You can use the shutdown command + option like below.
$ sudo shutdown -h +3
May 18 '20 #2
cetpainfotech
15 Byte
To automatically shut down a Linux system after a certain period of time, you can use the "shutdown" command with the "-t" option, which specifies the number of seconds until the system should be shut down. For example, to shut down the system after 3 minutes, you can use the following command:

In perl:-

sudo shutdown -h +3
This command will shut down the system after 3 minutes. The "-h" option is used to specify that the system should be halted (or shut down) after the specified time.

You can also use the "at" command to schedule a shutdown for a specific time. For example, if you want to shut down the system at 6:00 PM, you can use the following command:

In bash:-

echo "shutdown -h now" | at 18:00
This will schedule a shutdown for 6:00 PM.

Note that using the above commands will require root or superuser permission.
Also, please be careful when using the shutdown command, as it will immediately shut down the system and any unsaved work will be lost.
Jan 28 '23 #3
pritikumari
23 16bit
You can use these methods for shutdown system after 3 minutes.

Change the Registry setting for Power down After Shutdown.
Turn off the automatic restart option when a system failure occurs.
Turn off the hibernation feature.
Check the behavior of the power button setting.
Disable fast startup.
Jan 31 '23 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Mad Scientist Jr | last post by:
My asp.net pages sessions are timing out after 20 minutes, and when I asked my Web host about it they said due to the nature of a shared hosting environment they cannot allow for sessions to keep...
6
by: eroc.spam | last post by:
Hello- I'm working with a .NET windows service that can potentially take up to 10 minutes to shutdown. I would like to make it so that SCM doesn't timeout before the service actually stops, but...
6
by: Ash | last post by:
Hi coders, I have a service that does alot of data copying to the database and when the service is stopped or the machine is shutting down it commits the data (in addition to other things) and...
8
by: Stefan Barlow | last post by:
On IIS 6, I've disabled idle timeouts and any app pool recycling other than the 29 hour timed recycle. I've disabled both on the app pool itself and on all app pools at the server level. I've...
3
by: ktg024 | last post by:
How cain i shutdown the system
4
by: Robert Dunlop | last post by:
In my Application_End method in Global.asax, I log the shutdown reason (System.Web.Hosting.HostingEnvironment.ShutdownReason) and any errors returned from Server.GetLastError(). Occasionally (2-3...
10
by: tshad | last post by:
I have a Windows Service that I need to put to sleep for about 10-20 minutes. The problem is that if you try to shut it down during this time, it will tell you that the service didn't respond in...
7
by: mmda | last post by:
is it possible to understand which system is shut down and which of them has unplugged network cable in lan if the answer is yws please help me when you ping an ip if its turn on and has ...
2
by: kinzy | last post by:
I want to know how can i shutdown the system using Kill command
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.