LAM Alaska About Last-Run program

Last-Run example program documentation

The Last-Run example program is based on the Better Configuration File program. This program uses the basic Better Configuration File concept along with the second enhancement. This enhancement expects that all lines of the configuration file conform to the basic Better Configuration File concept of parameter lines, blank lines and comment lines entered in any order but without the alternate end of the configuration file. It then updates parameters in the configuration file during the run. This example only updates a last run date time stamp. All other parts of the configuration file are left intact and even leading or trailing spaces on the parameter name side of the parameter line are left unchanged.

I tested Last-Run with no read access to the configuration file and no write access to the configuration file and cleaned up the error pages. I decided to include the program header which includes a link to the program documentation in the error pages. I also added bolding to the cause of the error returned when the open request failed. In this testing case it was Permission denied caused by setting permissions at 600 and 644 to get the cannot open and cannot update error pages.

I published the above links after creating .html files from the .htm files captured by my browser by stripping the head and menuBar information so that the z.lam1.us menuBar will be the only one displayed.
Wednesday, January 28, 2009 @ 1:46:10 AM (Alaska Time) - After publishing this page and the program I noticed that I was not preserving comments if present on parameter lines that were being updated so I fixed this. An updated parameter is preceded and followed by a single space and additional white space between the '=' and the parameter or between the parameter and the '#' is now the only thing changed along with a parameter update.
99 visits (2 today, 8 this week, 41 this month, 99 this year)
Uptime: 20:47:01 up 10 days, 2:30, 5 users, load average: 0.00, 0.00, 0.00
3.146.176.191 GET from server z.larryforalaska.com

Friday, December 27, 2024 @ 8:47:01 PM
z.ServerAdmin@lam1.us