#!/mod/bin/jimsh

source /mod/var/mongoose/lib/setup
require pretty_size

foreach file [concat \
    [glob -nocomplain /var/log/*.log] \
    [glob -nocomplain /mod/tmp/*.log] \
] {
	puts "<a href=# class=log file=\"$file\">
	    <img border=0 height=14 src=/images/421_1_00_CH_Title_2R_Arrow.png>
	    [file tail $file]</a> ([pretty_size [file size $file]]) <br>"
}

