Hello All,
I need the script for using wget in a cron job for timed downloads at night and disconnect by morning. There are Triband NU users who use the script for night downloads. So if a script copy could be posted, I would be grateful.
Regards,
Rony.
___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html
On Sunday 25 Feb 2007 00:35:06 Rony wrote:
Hello All,
I need the script for using wget in a cron job for timed downloads at night and disconnect by morning. There are Triband NU users who use the script for night downloads. So if a script copy could be posted, I would be grateful.
Tell me exactly what it needs to do, I'll be happy to write you one.
On 25-Feb-07, at 5:33 AM, Mrugesh Karnik wrote:
night and disconnect by morning. There are Triband NU users who use the script for night downloads. So if a script copy could be posted, I would be grateful.
Tell me exactly what it needs to do, I'll be happy to write you one.
me too
Mrugesh Karnik wrote:
On Sunday 25 Feb 2007 00:35:06 Rony wrote:
I need the script for using wget in a cron job for timed downloads at night and disconnect by morning. There are Triband NU users who use the script for night downloads. So if a script copy could be posted, I would be grateful.
Tell me exactly what it needs to do, I'll be happy to write you one.
I need to start a dialup connection using wvdial and wget the iso download. The connection must close before 6 AM.
It is a Reliance FWP Freedom at Night plan where downloads are unlimited between 10 pm to 6 am. The speed was too slow though on the first day. I connect using 'sudo wvdial reliance' and manually give 'sudo route add default ppp0'. Then give 'wget url'. I will start the download but I need to stop it just before 6 am and wget should keep the partial file resumable for next day.
Regards,
Rony.
___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html
On 25-Feb-07, at 7:41 PM, Rony wrote:
Mrugesh Karnik wrote:
On Sunday 25 Feb 2007 00:35:06 Rony wrote:
I need the script for using wget in a cron job for timed downloads at night and disconnect by morning. There are Triband NU users who use the script for night downloads. So if a script copy could be posted, I would be grateful.
Tell me exactly what it needs to do, I'll be happy to write you one.
I need to start a dialup connection using wvdial and wget the iso download. The connection must close before 6 AM.
It is a Reliance FWP Freedom at Night plan where downloads are unlimited between 10 pm to 6 am. The speed was too slow though on the first day. I connect using 'sudo wvdial reliance' and manually give 'sudo route add default ppp0'. Then give 'wget url'. I will start the download but I need to stop it just before 6 am and wget should keep the partial file resumable for next day.
script is being written - what is the command to stop the download?
Kenneth Gonsalves wrote:
It is a Reliance FWP Freedom at Night plan where downloads are unlimited between 10 pm to 6 am. The speed was too slow though on the first day. I connect using 'sudo wvdial reliance' and manually give 'sudo route add default ppp0'. Then give 'wget url'. I will start the download but I need to stop it just before 6 am and wget should keep the partial file resumable for next day.
script is being written - what is the command to stop the download?
I do Ctrl + C to stop wvdial. But I guess 'ifdown ppp0' should work as the connection gets this id after its up.
Regards,
Rony.
___________________________________________________________ All New Yahoo! Mail � Tired of Vi@gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
On 2/25/07, Rony ronbillypop@yahoo.co.uk wrote:
There are Triband NU users who use the script for night downloads. So if a script copy could be posted, I would be grateful.
Use bridged mode and setup MTNL xDSL account on your system.
Then simple cron entries would be:(assuming mtnl as name given) 00 0 * * * /sbin/ifdown mtnl #this makes sure that you old session is terminated if on 01 0 * * * /sbin/ifup mtnl 02 0 * * * wget/curl/lftp ... whatever you need to run 59 7 * * * /sbin/ifdown mtnl
Sync your system to IST.
E&OE but you get the idea.
Amish.
Amish Mehta wrote:
Use bridged mode and setup MTNL xDSL account on your system.
Then simple cron entries would be:(assuming mtnl as name given) 00 0 * * * /sbin/ifdown mtnl #this makes sure that you old session is terminated if on 01 0 * * * /sbin/ifup mtnl 02 0 * * * wget/curl/lftp ... whatever you need to run 59 7 * * * /sbin/ifdown mtnl
Sync your system to IST.
E&OE but you get the idea.
Thanks, that was what I was looking for. I will even add the route command in this.
Regards,
Rony.
___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html
Amish Mehta wrote:
Use bridged mode and setup MTNL xDSL account on your system.
Then simple cron entries would be:(assuming mtnl as name given)
I made my own cron file based on your example. Here it is below. Is it correct? I plan to run the cron job as root so no sudo commands will be used.
10 22 * * * /usr/bin/wvdial reliance 11 22 * * * /sbin/route add default ppp0 12 22 * * * /usr/bin/wget/curl/http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian-testing-i... 55 5 * * * /sbin/halt -p
The last line is to shut down the machine at 5.55 am.
Regards,
Rony.
___________________________________________________________ All New Yahoo! Mail Tired of Vi@gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
On Sun, Feb 25, 2007 at 08:39:42PM +0530, Rony wrote:
I made my own cron file based on your example. Here it is below. Is it correct? I plan to run the cron job as root so no sudo commands will be used.
10 22 * * * /usr/bin/wvdial reliance 11 22 * * * /sbin/route add default ppp0 12 22 * * * /usr/bin/wget/curl/http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian-testing-i... 55 5 * * * /sbin/halt -p
I am not sure about that wget line, but I'd use:
12 22 * * * /usr/bin/wget -c http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian-testing-i...
Of course, ensure that's what you want.
Kumar
On Sunday 25 February 2007 21:08, Kumar Appaiah wrote:
On Sun, Feb 25, 2007 at 08:39:42PM +0530, Rony wrote:
I made my own cron file based on your example. Here it is below. Is it correct? I plan to run the cron job as root so no sudo commands will be used.
10 22 * * * /usr/bin/wvdial reliance 11 22 * * * /sbin/route add default ppp0 12 22 * * * /usr/bin/wget/curl/http://cdimage.debian.org/cdimage/weekly-build s/i386/iso-cd/debian-testing-i386-kde-CD-1.iso/ 55 5 * * * /sbin/halt -p
I am not sure about that wget line, but I'd use:
12 22 * * * /usr/bin/wget -c http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian- testing-i386-kde-CD-1.iso
curl -C - http://yakyak if u want to continue the download from wherever it stopped. -c is for specifying the file to store cookies.
10 22 * * * /usr/bin/wvdial reliance
Dont know abt reliance but dialup sometimes take more than a minute.
11 22 * * * /sbin/route add default ppp0
So add this to your if-up.local, thats better.
Though, you should not need default route unless you have set nodefaultroute on PPPD or peers file. See man pppd.
Amish.
Amish Mehta wrote:
Though, you should not need default route unless you have set nodefaultroute on PPPD or peers file. See man pppd.
My default route is eth0 for the ADSL.
Regards,
Rony.
___________________________________________________________ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
10 22 * * * /usr/bin/wvdial reliance 11 22 * * * /sbin/route add default ppp0 12 22 * * *
/usr/bin/wget/curl/http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian- testing-i386-kde-CD-1.iso/ 55 5 * * * /sbin/halt -p
Dear Rony, i understand that a download script would be the best in this case, but if it is the latest Debian you are looking for currently, just mail me of the list and i can pass it on to you.
Regards,
- vihan