Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-20-2012, 12:16 AM   #1
LQ Newbie
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
how to trun on the system automatically by crontab?

I have actually using ubuntu 10.04.
I want that the system should Turn ON automatically at 9:00 am and turn off the system at 8.00 pm.

Is there any way crontab command ? or other procedure so that i may not manually on the system
Old 06-20-2012, 12:29 AM   #2
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693
Sorry. The system has to be on for crontab to work.

But, if you want your computer to turn on at a certain time,.. you *might* have an option in your Bios, under power management. Something about wake alarm or something similar.

Other than that you are going to be looking at Wake on lan solutions, which might not help, or mechanical solutions such as an external power timer.
Old 06-20-2012, 12:29 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
If the computer is off, cron isn't running and can't turn on the computer. Cron could shut it down at a certain time each day.

You could use a timer to supply power between 9 AM and 9 PM and have the computer turn itself off at 8 PM.
Old 06-20-2012, 02:39 AM   #4
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
The other procedure by the timer option from the BIOS this option works with most ATX boards or setup the computer to wake on lan and use an external system to send the magic WOL command.
to shutdown the computer:
00 20 * * * /sbin/poweroff


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"crontab" to start the system automatically. gardenair Linux - Server 9 10-15-2011 02:54 AM
crontab is not working automatically ashrash Linux - Newbie 8 09-02-2009 02:48 AM
Crontab fails automatically Sriram.root AIX 3 07-21-2008 01:26 AM
system crontab gazman1 Linux - General 1 06-01-2006 11:31 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration