Open samwyse opened 11 years ago
Make sure to use -rk BatterySerialNumber
time ioreg -l > /dev/null
real 0m1.415s user 0m0.155s sys 0m1.258s
time ioreg -rk BatterySerialNumber > /dev/null
real 0m0.013s user 0m0.003s sys 0m0.010s
date >> ~/batlog.dat /usr/sbin/ioreg -l | egrep 'Capacity|Temperature' >> ~/batlog.dat
You dropped CycleCount, va3paw. I added that and some charging info: (date; /usr/sbin/ioreg -l | egrep "CycleCount|Capacity|Temperature|Charg" ) >> ~/batlog.dat
Caveat: I haven't checked whatever parses the logs into csv. Incidentally, specifying the full filepath might be a good idea. Maybe we should have a helper script for that, I don't know.
date >> ~/batlog.dat /usr/sbin/ioreg -l | egrep 'CycleCount|Capacity' >> ~/batlog.dat