Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Running a Shell-update script on links

Quote Reply
Running a Shell-update script on links
Hi

I wounder if anyone known how could I set up a litle script that would first retrieve some HTML text from a file to another file and them would include those lines in the index.html generated by links.
I suppose It would run with cron or at, independent of links as would just update the index.html page, placing on this new lines instead of the old ones. Like placing new headlines news.

So first the script would do:

1. Grab the HTML file (call it A.html) from a web site and place it in our server.

2. After would open that HTML file and strap all "<a href.." line from the file and stores those lines it in another file (B.html).

2. Pick up the HTML lines of the new file (B.html) and merge, or join them in a specific place in "index.html" , file generated by links.

Anyone with suggestions how I can do this script.
Does it make sense what Ive just said?

Thanks

Polo