Scheduling downloads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

How would this script look?

#!bin/sh
# schedule download of dvd
if[ date %T = 00:01:00 ]; then
wget -c ftp.<some-server>/<some-dvd.iso>
fi

I can't see how to tell wget to put the download in a specified directory as I guess that it would put it in /etc/cron.daily/.  I wondered if the above is anywhere like what I need?

On Sat, Apr 22, 2006 at 10:43:01AM +1000, Luke Yelavich wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sat, Apr 22, 2006 at 10:23:41AM EST, Georgina Joyce wrote:
> > Hi All
> > 
> > My ISP requests that I schedule downloads during off peak hours and as I'm looking at downloading a DVD image, I'm wondering how I can start my download.
> > 
> > Of course I could wait until midnight and start the download but I wondered if there was a more automated way.  Even to stop at 08:00 and resume the following midnight.  I know that I could use cron but I would need to specify a time and the download location, which seems a little scary.  I'd usually use lftp but maybe another client might offer a solution?  Just thought, might wget do the job?  Any suggestions anyone?
> 
> This is something that is easily scriptable. You could write one script 
> to start the download, and then have another script to find out the 
> process ID of the currently running script for the download, and kill 
> it. Wget is good, but make sure you use the command-line flag to resume 
> downloads at a later time when you want the download to be resumed.
> 
> hth
> - -- 
> Luke Yelavich
> GPG key: 0xD06320CE 
> 	 (http://www.themuso.com/themuso-gpg-key.txt)
> Email & MSN: themuso at themuso.com
> ICQ: 18444344
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
> 
> iD8DBQFESXwVjVefwtBjIM4RAiMPAKCc7pTBONyU0ZcxHuUnB5x0oNqzdwCg40sS
> w1OlqRxNAZ9VnQyYKUudz0k=
> =Ghbi
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
---end quoted text---

-- 
2E0AXU

Blindness Advocacy Self Help (BASH Online)
bashonline-subscribe at yahoogroups.com

Freedom & Power provided by debian GNU Linux




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux