2011-11-16 21:40:53 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
|
|
|
source /mod/var/mongoose/lib/setup
|
2011-11-19 01:12:36 +00:00
|
|
|
require pretty_size
|
2011-11-16 21:40:53 +00:00
|
|
|
|
2011-11-27 23:29:14 +00:00
|
|
|
foreach file [concat \
|
|
|
|
[glob -nocomplain /tmp/*.log] \
|
|
|
|
[glob -nocomplain /mod/tmp/*.log] \
|
|
|
|
] {
|
2011-11-16 21:40:53 +00:00
|
|
|
puts "<a href=# class=log file=\"$file\">
|
|
|
|
<img border=0 height=14 src=/images/421_1_00_CH_Title_2R_Arrow.png>
|
2011-11-19 01:12:36 +00:00
|
|
|
[file tail $file]</a> ([pretty_size [file size $file]]) <br>"
|
2011-11-16 21:40:53 +00:00
|
|
|
}
|
|
|
|
|