LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   need help using wget please (https://www.linuxquestions.org/questions/linux-server-73/need-help-using-wget-please-573086/)

balistic 07-28-2007 11:57 PM

need help using wget please
 
hi i was hoping someone could help me with my command using wget i use it to download from a list of urls using the command
Code:

wget -i list.txt
which works but for one of the urls it stalls, i dont know what its doing but its stopping the rest of the list from being downloaded fast. Is there a way to use wget and say if it takes longer then x to complete, then continue the list and skip that url? the list is changing everyday so i dont want to just remove it manually each time it happens if possible. I know it does it automatically if you wait but the wait is like 15 mins or something, is there a way to speed it up.

thanks in advance!

{BBI}Nexus{BBI} 07-29-2007 12:07 AM

Use the number of retries switch -t x. With x being anything from the number 0 to the phrase inf (infinite). The default is set to 20.

balistic 07-29-2007 12:33 AM

Code:

wget -t 1 -i list.txt
works :) however 0 doesnt so i guess its only values greater then 1, which still takes about a minute and a half but its faster then waiting before :)

Is there a way to adjust the time it waits while trying?

{BBI}Nexus{BBI} 07-29-2007 08:52 AM

Quote:

Originally Posted by balistic
Code:

wget -t 1 -i list.txt
works :) however 0 doesnt so i guess its only values greater then 1, which still takes about a minute and a half but its faster then waiting before :)

Is there a way to adjust the time it waits while trying?

Type man wget in a konsole to get a full list of wget options.


All times are GMT -5. The time now is 06:23 AM.