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.

Objectives:

  • Schedule a task to auto shutdown your computer in both Windows 7 and Ubuntu 12.04
  • Enjoy!

 

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

 

schedule_windows_ubuntu

 

Next, click ‘Action’ and select ‘Create Basic Task..’

 

schedule_windows_ubuntu_1

 

Next, give the task a name and click ‘Next’

 

schedule_windows_ubuntu_2

 

Then choose how often you want the task to run and click ‘Next’

 

schedule_windows_ubuntu_3

 

Next, choose the date and time you want the task to run and click ‘Next’

 

schedule_windows_ubuntu_4

 

Then choose the option to ‘Start a program’

 

schedule_windows_ubuntu_5

 

Next, type the program path as shown below and the augments /s

C:\Windows\System32\shutdown.exe

 

schedule_windows_ubuntu_6

 

Finally, click Finish to complete the process.

 

schedule_windows_ubuntu_7

 

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

 

schedule_windows_ubuntu_8

 

After installing, run the commands below to open gnome schedule as root.

sudo gnome-schedule

 

schedule_windows_ubuntu_9

 

Next, click ‘New –> Recurrent task’

 

schedule_windows_ubuntu_10

 

Then type the task description, the command and the date and time. The command to power off your computer is shown below:

/sbin/poweroff

 

schedule_windows_ubuntu_11

 

Enjoy!

 

schedule_windows_ubuntu_12

 

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)