On Wed, 27 Oct 2010, Raymond Norton wrote: > That's pretty cool. Works perfectly :) Good. I was thinking you would either run the script on a server that would then serve the file in response to http requests. The script could be called by a crontab, or it might just run in a while loop with a sleep command. A second possibility is to do it using cgi-bin. That way, the script would be the thing requested and the script would send html output to the browser. That gives a fresher version of the file, but it puts more load on the server because the server has to do one wget for every request instead of one every five minutes. But if this is for a small group of users, the cgi-bin approach might be preferred. With that approach you'd have to add another content line above the <html>. Mike > On 10/27/2010 2:43 PM, Mike Miller wrote: >> On Wed, 27 Oct 2010, Raymond Norton wrote: >> >>> The file does not exist yet ( I will use the existing file for testing), >>> but I imagine the headings will appear like this: >>> >>> COUNCIL MEMBER SEAT 1 CITY OF HUTCHINSON >>> >>> and >>> >>> COUNTY SHERIFF >>> >>> The refresh can be taken care of with the following: >>> >>> <meta http-equiv="refresh" content="5" > >> >> >> The attached bash script, as currently written, grabs the HTML file, >> filters it through a perl regexp search/replace filter and produces the >> following output. See instructions on how to fix it for your particular >> job. We don't know exactly the format of the file right now, so I give a >> couple of guesses. The input uses Windows text (carriage-return, newline >> pairs at ends of lines, so the script retains that). >> >> >> <html> >> <meta http-equiv="refresh" content="5" > >> >> <PRE> >> PRECINCT REPORT MCLEOD COUNTY, MINNESOTA UNOFFICIAL RESULTS >> RUN DATE:11/06/08 GENERAL ELECTION >> RUN TIME:12:06 PM NOVEMBER 4, 2008 >> >> COUNCIL MEMBER SEAT 3 CITY OF HUTCHINSON >> VOTE FOR UP TO 1 >> ERIC YOST . . . . . . . . . . . 1311 50.68 >> MARY CHRISTENSEN . . . . . . . . . 1270 49.09 >> WRITE-IN. . . . . . . . . . . . 6 .23 >> >> JUDGE 28 1ST DISTRICT COURT >> VOTE FOR UP TO 1 >> KAREN ASPHAUG . . . . . . . . . . 1841 99.46 >> WRITE-IN. . . . . . . . . . . . 10 .54 >> >> </pre> >> </html> >> >> Best, >> Mike