Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Refresh on the hour or run on the hour

 [1/3] from: john-harbaugh:earthlink at: 6-Sep-2003 9:42


I am using the following script, which works flawlessly. The current "<META tag> " has the file rewriting the screen, and running some other scripts, that I didn't show, every hour. The "3599" compensates for time 1 second delay in starting/running the script. <META HTTP-EQUIV="refresh" CONTENT="3599"> However, it would be better, if it ran "on the hour" exactly, regardless of when it was started. Any ideas? ------------------------------ write %filename_test_connection.html reduce [ <HTML> <HEAD> <META HTTP-EQUIV="refresh" CONTENT="3599"> </HEAD> <BODY BGCOLOR=#FOF1F3> <FIELDSET> <LEGEND><FONT face=timesroman SIZE=2 COLOR=green><B>"Server CGI Connectivity Test " times </B></LEGEND> <blockquote> <FONT face=arial SIZE=2 COLOR=NAVY> <B>"Connection Made "</B><br> months "/" days "/" years " " ntime <br> </blockquote> </FIELDSET> </body> </html> ] print read %filename_test_connection.html ____________________________________ Dr. J. J. "So far right, I can't see center" Harbaugh King James Only Bible List <mailto:[kjbo--earthlink--net]?subject=subscribe>

 [2/3] from: greggirwin::mindspring::com at: 6-Sep-2003 10:09


Hi John, JH> However, it would be better, if it ran "on the hour" exactly, regardless of JH> when it was started. Do you mean figuring out when the next full hour occurs (i.e. how many seconds from now), something like this?
>> t: now/time
== 10:08:05
>> to integer! subtract 1:0:0 make time! reduce [0 t/minute t/second]
== 3115 -- Gregg

 [3/3] from: john-harbaugh:earthlink at: 6-Sep-2003 13:43


Hmmmm, I will have to play with that. Thanks.. Dr. J. J. "So far right, I can't see center" Harbaugh King James Only Bible List <mailto:[kjbo--earthlink--net]?subject=subscribe>