# possible cron job: # # cd /cfg/backup # { for(i in 'E0 E1' 'E2 E3' 'E4 E5' 'E6 E7' 'F0 F1' 'F2 F3' 'F4 F5'){ # x=`{echo $i} # venti/mirrorarenas -v /dev/sd$x(1)^/arenas /dev/sd$x(2)^/arenas # } } >www/mirror1.txt >[2=1] # mv www/mirror1.txt www/mirror.txt # awk -f mirror-log.awk www/mirror.txt >www/mirror.html BEGIN { print "
%s | %s | %s | %s | " } function finish() { if(!arena && !status) return if(info == "" && laststatus == status){ lastarena = arena return } if(firstarena != ""){ if(firstarena == lastarena) printf(fmt(), time, firstarena, "", ""); else printf(fmt(), time, firstarena, "-", lastarena); print laststatus " |