scrap pad

find powerbook battery status via cli

how to find out, from the command line, the battery status of a laptop running mac os x: use 'pmset' (power management setting cli util):

[1:38pm bec@persimmon:~] % pmset -g batt
Currenty drawing from 'AC Power'
 -InternalBattery-0     89%; charging; 0:39 remaining 
[1:38pm bec@persimmon:~] % pmset -g batt
Currenty drawing from 'Battery Power'
 -InternalBattery-0     89%; discharging; 2:11 remaining

Archives

who I am