#!/bin/sh

while sleep 30;\
 do log=`sysctl hw.acpi.battery.life\
                hw.acpi.battery.time\
                hw.est_curfreq\
                vm.loadavg`;\
 echo $log;\
 echo $log >> batterystats.txt;\
done
