This brief tutorial is going to show you how to perform the same task in both Windows 7 and Ubuntu 12.04 (Precise Pangolin). These systems may be different but are almost similar in functions. Almost anything you do in Windows 7 can also be done in Ubuntu 12.04. In today’s tutorial, I am going to show you how to schedule a task to automatically shutdown your computer at a given date and time in both Windows 7 and Ubuntu 12.04.
And if you’re coming from Windows 7 to Ubuntu 12.04, this guide will come in handy and help you better understand Ubuntu. So, without wasting anymore of your time, lets’ get going.
- Schedule a task to auto shutdown your computer in both Windows 7 and Ubuntu 12.04
How to Automatically Shutdown Your Computer Everyday in Windows 7
To schedule a task to shutdown your computer automatically in Windows 7, go to Start –> All Programs –> Accessories –> System Tools –> Task Scheduler
Next, click ‘Action’ and select ‘Create Basic Task..’
Next, give the task a name and click ‘Next’
Then choose how often you want the task to run and click ‘Next’
Next, choose the date and time you want the task to run and click ‘Next’
Then choose the option to ‘Start a program’
Next, type the program path as shown below and the augments /s
Finally, click Finish to complete the process.
That’s it! At midnight everyday your computer will shutdown automatically.
How to Automatically Shutdown Ubuntu 12.04 ad Midnight Everyday.
To shutdown Ubuntu everyday at might, press Ctrl – Alt – T on your to open Terminal. When it opens, run the commands below to install gnome-schedule.sudo apt-get install gnome-schedule
After installing, run the commands below to open gnome schedule as root.sudo gnome-schedule
Next, click ‘New –> Recurrent task’
Then type the task description, the command and the date and time. The command to power off your computer is shown below:/sbin/poweroff
Things to remember:
- The time format in Ubuntu is military or 0 – 23 hours format (24h)
- The * means all possible value. ( Run every day of the month/week)