Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone!
I'm somewhat new to linux, so please bear with me
I'm using Ubuntu 8.04, and I'm currently trying enlightenment 17, which has the most wonderful slideshow desktop gadget; it basically shows on the desktop the pictures you put on a given directory. After growing tired of my local images, I thought it'd be great if I could just make it fetch images from the web... So, after doing my homework on wget, grep, and awk, I'm currently trying to write a shell script that downloads some new images to the gadget directory everyday. The problem is, my wget is just not working as I would expect it to (prolly my fault here but... :P)
For example:
If I do a "wget -r -l2 -A jpg [h t t p : / /]google[dot]com", it doesn't download anything (I can't post links yet... it should download *at least* the logo jpg, right?)
A simple "wget -r -l2 [h t t p : / /]google[dot]com" just gives me the index.html file
At first I thought there was something wrong with my wget, but I've built it from source, and nothing changed...
Well first, it would seem that the images are .png not .jpg, so that would be an issue (have a look at the source code for the page)
Second, I'm pretty sure you can set web servers to stop downloading of images referenced from html code, and since the google code seems to pull images from a separate directory, there's a pretty good chance they've done this.
In any case, the images aren't in the root of www.google.com, so I guess it makes sense that it can't find them there
Try your code on a site you know has jpgs in it first to check it's correctness
Last edited by billymayday; 06-08-2008 at 06:41 PM.
but, "wget -nd -r -l1 -A jpg http://flickr.com" only returns "robots.txt"... Which it shouldn't I have no idea what's going on...
I've also tried "-U Mozilla", with no luck
--edit--
ok, it seems I was missing "-p", to download all files referenced by the html page.
I'm now trying with deviantart.com, which as plenty of jpgs, and I'm using
wget -nd -r -l2 -p -U Mozilla http://deviantart.com
which gives me just index.html...?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.