Sunny, On Wednesday 15 December 2004 17:13, Sunny wrote:
On Tue, 14 Dec 2004 13:57:42 -0800, Randall R Schulz wrote:
That's not really a cron kind of thing.
What you want is already built in to the KDE desktop software.
...
Randall Schulz
Ok, I created this script: <code> #!/bin/bash FILENAME=$1 wget --proxy=off http://somewhere.com/GetRandomImage -O "$FILENAME" date >> /home/sunny/tmp/refresh echo "$FILENAME" >> /home/sunny/tmp/refresh </code>
the last 2 lines are only for some logging to see what happens.
Now, if I invoke this with: get_pic test.jpg it works like a charm, and it creates test.jpg, and logs in the file refresh.
Does that script work properly even if the argument has no suffix? I guess that since it retrieve an image from the Web and stores the result via wget's -O option, it should be fine. (That's really what it does, right? That's not just a sample you're using for illustration here, is it?) Is the background-generating script in the default PATH you have at login time?
So, next step was to go to Enable "Use the following program for drawing the background", and there I have changed kwebdesktop with: /path/to/get_pic %f
Also, I set the refresh rate to 5 minutes (this is the minimum), and sit waiting ... :)
And ... nothing changes. No log entries as well. My script is never invoked.
So, I guess I miss something. Any clue?
I trust you enabled the "Use the following program for drawing the background", since without it the other relevant controls are disabled. Did you select your entry from the list of background-generating programs? Lastly, be sure in the main "Background" panel that you select "No picture" in the "Background" section.
Thanks Sunny
By the way, is there a source of image files on the Web that are good candidates for this sort of use? Lastly, if anyone knows how I can get current composite satellite images, including cloud and ground cover instead of the fixed image generated by XPlanet, please let me know. I want to watch when the tornadoes hit Ohio next summer. Randall Schulz