LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget command (https://www.linuxquestions.org/questions/linux-newbie-8/wget-command-656265/)

nawuza 07-16-2008 10:07 PM

wget command
 
i am running a script which have the command wget.the script jobs is to download file. what if when the script run,the downloading process is running, and then the cable is unplugged and the download is interrupted.is there a way that i can use to resume the download again?

pinniped 07-16-2008 10:23 PM

wget -c (+ all other options + URL)

nawuza 07-16-2008 10:36 PM

ok..

this is the script..for testing the download interupted.

Code:

#!/bin/sh
etc/init.d/httpd stop

wget -c http://localhost/backup/test.tgz

etc/init.d/httpd start

can anybody give me an idea on makng sure that the download is complete or if not complete,the download willtry again until certain time its stop.

onebuck 07-16-2008 10:37 PM

Hi,
Quote:

Originally Posted by nawuza (Post 3217102)
i am running a script which have the command wget.the script jobs is to download file. what if when the script run,the downloading process is running, and then the cable is unplugged and the download is interrupted.is there a way that i can use to resume the download again?

You've been given the answer already.

If in the future you need to now smething about a 'command' then do a 'man command' from the cli to get the answer. Man is your friend!

If you want a online reference then look at 'LINUX MAN PAGES ONLINE'.


All times are GMT -5. The time now is 06:03 PM.