Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Assuming you're talking about bringing the system totally down ("shutdown") and then having it reboot itself automatically, I don't know of any direct way. I think you will need some external stimulus.
I've never used this feature, but I know some systems have a "wake on LAN" capability. But this requires an external stimulus via the network. And the system is not totally down I don't think - it's in some kind of sleep mode. Again, I've never used this capability so I really don't know the details. You could research it yourself.
Another possibility is to set your BIOS to start booting when mains power is detected. Then you could use some external device to turn the power on (an X10 Appliance Module, or something like that). You would need an external timer as well. I wouldn't do this myself, too much potential for problems if the X10 device inadvertantly received an OFF command or screwed up with line noise.
Personally, I just leave my systems running 24x7. They're on a UPS that will shut them down cleanly if a power failure occurs. Most CRT monitors these days can be idled down to a low power state, LCD monitors don't draw much power anyway, and when their backlight kicks off, power draw is minimal.
Now, after all that, if your question was not about system shutdown/startup and you were really interested in simply running a program at a preset time ... investigate the "crontab" and "at" commands.
For me there's a "Auto Power" option under "Power Management" in the BIOS that allows me to choose the time, and days, that the computer will turn itself on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.