Hey Gang....
I was thinking the other day that it would be cool to be able to have a collection of graphics to use as avatars at various BBSes that allow you to link to external graphics. I figured that I'd be able to quickly find a script out there that would rename/recycle filenames to be whatever I wanted, but I've found nothing at all!
Actually, that's not true. I've found a LOT of things that will allow you to randomize a graphic in a web page, but that isn't what I'm talking about.
Scenario:
Let's say that I link to an off site graphic called avatar.jpg
Let's also say that I have a directory on a Linux box with 100 graphics.
What I envision is a program that will, on a regular basis (once every 10, 20 30 seconds... 1, 2, 5, 10 minutes...whatever) rename a file to "avatar.jpg". At the next cycle it will rename that file something else... I don't care what else, just something... and then it will randomly choose another file in the directory and rename it to be "avatar.jpg".
This way, the remote server is always linked to "avatar.jpg", but the actual graphic that "avatar.jpg" represents would be constantly changing.
Perhaps there is a better and more obvious way to do this that I'm missing. Is so, I'd be very appreciative to be enlightened.
If not... what would be the best way to go about programming some script in Linux to do it (as a cron job?) ? I'm not very well versed at programming more than the most basic of scripts, but I'm willing to learn and get my feel wet with this, but I'm not even sure of how to go about it.
Any thoughts?
Was I clear in what I'm trying to describe?
Thanks in advance for any input!
Joe
I was thinking the other day that it would be cool to be able to have a collection of graphics to use as avatars at various BBSes that allow you to link to external graphics. I figured that I'd be able to quickly find a script out there that would rename/recycle filenames to be whatever I wanted, but I've found nothing at all!
Actually, that's not true. I've found a LOT of things that will allow you to randomize a graphic in a web page, but that isn't what I'm talking about.
Scenario:
Let's say that I link to an off site graphic called avatar.jpg
Let's also say that I have a directory on a Linux box with 100 graphics.
What I envision is a program that will, on a regular basis (once every 10, 20 30 seconds... 1, 2, 5, 10 minutes...whatever) rename a file to "avatar.jpg". At the next cycle it will rename that file something else... I don't care what else, just something... and then it will randomly choose another file in the directory and rename it to be "avatar.jpg".
This way, the remote server is always linked to "avatar.jpg", but the actual graphic that "avatar.jpg" represents would be constantly changing.
Perhaps there is a better and more obvious way to do this that I'm missing. Is so, I'd be very appreciative to be enlightened.
If not... what would be the best way to go about programming some script in Linux to do it (as a cron job?) ? I'm not very well versed at programming more than the most basic of scripts, but I'm willing to learn and get my feel wet with this, but I'm not even sure of how to go about it.
Any thoughts?
Was I clear in what I'm trying to describe?
Thanks in advance for any input!
Joe