#!/mod/bin/jimsh package require cgi puts "Content-Type: text/html" puts "Pragma: nocache" puts "Expires: Thu, 01 Jan 1970 00:00:00 GMT" puts "" set dir "/mod/var/backup" proc empty {} { puts " No current backup files. " } if {![file isdirectory $dir]} { empty exit } set backups [glob -nocomplain "$dir/*"] if {![llength $backups]} { empty exit } foreach backup [glob -nocomplain "$dir/*"] { set b [file tail $backup] puts "$b ( [clock format [file mtime $backup] -format {%c %Z}] )
" }