Re: [htdig] SSI and htsearch

Geoff Hutchison (
Mon, 15 Mar 1999 22:49:38 -0500

At 1:14 PM -0500 3/15/99, Charlie Romero wrote:
>The only thing I've done w/ cron is roll logs, but I like the idea. How
>would cron know to rotate through files as opposed to just moving to the
>next one down the list. Can you write the script to make it start over and
>replace file z.html with a.html at a certain given point. I guess it needs
>to be a shell game so that files don't get overwritten but just continually

Cron runs commands, including scripts. So before I worry about running
something through cron, I make sure the script works as I expect first. You
can easily have a shell script like so (much like most log rotating

# swap this so we can make the switch at the end...
mv a.html temp.html
mv b.html a.html
mv c.html b.html
mv z.html y.html
mv temp.html z.html

>As far as calling a script inside of an <img> tag, can you lead me a little
>farther? I'm not sure of how to get from point A to point B, but this also
>sounds like an excellent idea.

Ever see counter CGIs? An image tag is simply a link--it has to execute the
link to get the graphic. So a CGI that returns an image works inside an
<img> tag. I've seen many ad scripts that work like this...

-Geoff Hutchison
Williams Students Online

To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in
the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Wed Mar 17 1999 - 10:05:12 PST