Comments on How To Automatically Shut Down Your Computer After A Download Finishes

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.

7 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Bryce

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.

By: Anonymous

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

By: plamen

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.

By: Anonymous

{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.

 

By: Anonymous

nice & elegant solution!

By: Anonymous

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

By: Roberto

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.