Wake Your Linux Up From Sleep for a Cron Job

Written By
Web Webster
Web Webster
Dec 10, 2010

“Here’s the latest in our new series on OS tips from power
users: a seemingly trivial task. You have a computer, most likely a
laptop, that you wish to keep suspended while you’re not working.
For example, let’s say overnight. At the same time, you wish to run
a handful of maintenance tasks, like backups and cleanup, which you
don’t normally do during the day. So you need a mechanism that will
send your machine to sleep, wake it up when necessary, run cron
jobs, then send it back to sleep again.

“Possible? Well, if it weren’t, I would not be writing this
tutorial, but it definitely is not trivial. In this tutorial, I
will show you how you can do this, in a relatively simple and safe
manner. We will check the requirements for the task. We will
examine a typical use case. We will discuss the many small-print
items revolving around this idea, e.g. why you need to be extra
careful with waking from sleep for cron jobs. And we’ll do a few
other things, besides.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.