LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Automated downloading of GIF's in Mozilla (https://www.linuxquestions.org/questions/programming-9/automated-downloading-of-gifs-in-mozilla-496468/)

mrfixit1951 10-28-2006 06:30 PM

Automated downloading of GIF's in Mozilla
 
I'm looking for a way to automatically download GIF images from the National Weather Service every hour. I'm using Mozilla 1.7.13.
So far in my script I have "/usr/bin/mozilla/mozilla http://xxxxxxx.gif". That will open mozilla, and display the GIF. Now I need a way to automatically download the image to my HD, then close mozilla.
Anyone have any ideas?

FreeDoughnut 10-28-2006 06:45 PM

Do you need to open it in Mozilla? You could just wget it. Or maybe you could do something like this:
Code:

/usr/bin/mozilla/mozilla http://xxxx.gif
/usr/bin/wget http://xxxx.gif
killall mozilla

The killall wouldn't be your best option, but I forget how to grab the process ID and just kill that.

mrfixit1951 10-30-2006 06:36 PM

Free Doughnut,
Thanks, that worked like a charm!
It's funny how sometimes you can overlook the simple things.
wget, used all by itself did the trick!


All times are GMT -5. The time now is 08:49 AM.