Scheduling shutdown after download completion.
Is there any way to schedule shutdown, from terminal,right after some currently running download in mozilla completes??
|
Quote:
Code:
wget <url of file to get> |
Quote:
|
That's one way to do it, another is to use ';' or '&&' to run both commands, one after the other. Like this:
(first become root!) Code:
wget <URL>; shutdown -h 0 Code:
wget <URL> && shutdown -h 0 no need for a script! |
If you have a rough idea of when the download will complete, you can use the sleep command:
sleep 60m ; shutdown -h now or sleep 2h ; shutdown -h now It won't be as exact as the method above, but it's an option. :) Also you can schedule shutdown times with the shutdown command itself. See man shutdown. |
Wouldn't it be the simplest solution to use a download-manager that allows it, like JDownloader?
Estimation of the remaining download-time can be a major failure, because in most cases you don't the load of the server at any time. |
Quote:
|
All times are GMT -5. The time now is 07:50 PM. |