LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget does not work because of no html files? (https://www.linuxquestions.org/questions/linux-newbie-8/wget-does-not-work-because-of-no-html-files-653219/)

ufmale 07-02-2008 09:19 PM

wget does not work because of no html files?
 
I am trying to download jpg files from a directory that does not have any html files in the directory, but it does not work. I am using

wget -A.jpg http:/www.site.com/picture/

I used this command before and it worked. I guess that it does not work now because the picture directory have only jpg files. Does wget require html file to be in that directory in order to be working?

Mr. C. 07-02-2008 11:45 PM

The server would have to provide you with a page when you enter the URI. If the server doesn't offer an HTML page, there is nothing for wget to follow (eg. no links). Wget can't "see" magically inside a server's directory to download its content.


All times are GMT -5. The time now is 12:18 AM.