How To Automatically Shut Down Your Computer After A Download Finishes

Sometimes you want to download something but don't want to wait until it finishes so you can shut down the computer. In this case you can use Sentinella. Install it with the following command:

sudo apt-get install sentinella

Now you can see Sentinella under the System menu of your desktop. Launch it and you will see something like this:

Sentinella screenshot

Use the same settings as in the screenshot but make sure you choose your main network interface. Just press the Start button and that's it!

Share this page:

7 Comment(s)

Add comment

Comments

From: Bryce at: 2011-05-10 17:34:15

I'm more of a fan of $ wget && sudo halt. In the command above you assume that then download will complete without issue. If it doesn't; you wouldn't know.

From: Anonymous at: 2011-04-26 14:38:34

The following advice assumes you already have 'wget' installed: 1. Open a terminal 2. $ wget ; sudo halt

From: plamen at: 2011-04-27 22:48:32

Yes, you are right. But usually one runs wget and later he  decided to stop computer when download is finished.

Simple solution is cron job running every n minutes (where n can be usually 2, 5 or 10 minutes) checking if wget is still running ( ps | grep wget ) and halt computer when no output is emitted.

 P.

From: Anonymous at: 2011-04-29 04:46:58

{ctrl-z}

fg; sudo halt

Or if you need to use the "ps | grep" method, check out pgrep and watch out for "ps | grep" matching itself.

 

From: Anonymous at: 2011-07-18 10:51:05

nice & elegant solution!

From: Anonymous at: 2011-04-29 05:58:47

while true; do pgrep <downloading process> || shutdown -h now; sleep 10 ; done

From: Roberto at: 2011-07-29 20:58:19

If you are downloading over firefox, jus install the addon AutoShutdown.

 It places a button to enable checking status of downloads and shutdown the computer when all are completed.