On Sun, 07 Mar 2004 03:29:59 GMT, frank malinowski (Xyakers@redacted.invalid) wrote:
Mac Addict gives a UNIX command to check on battery level from the Terminal program: ioreg-l|grep-iIOBatteryInfo This does not work for me
ioreg -l | grep -i iobatteryinfo
In article Xyakers-0603041930000001@redacted.invalid, Xyakers@redacted.invalid (frank malinowski) wrote:
Mac Addict gives a UNIX command to check on battery level from the Terminal program: ioreg-l|grep-iIOBatteryInfo This does not work for me, I get the response Command not found, what am I missing? Are there spaces or do I have the characters wrong? I have a PBG4Ti400 OS 10.2.8
The correct command is ioreg -l|grep -i IOBatteryInfo
Gruesse aus der Schweiz Salutations en provenance de Suisse Saluti dalla Svizzera Greetings from Switzerland Happl
Hanspeter 'Happl' Oberlin wrote:
Xyakers@redacted.invalid (frank malinowski) wrote:
Mac Addict gives a UNIX command to check on battery level from the Terminal program: ioreg-l|grep-iIOBatteryInfo This does not work for me, I get the response Command not found, what am I missing? Are there spaces or do I have the characters wrong? I have a PBG4Ti400 OS 10.2.8
The correct command is ioreg -l|grep -i IOBatteryInfo
That is, apparently, what was intended. However, as Bev implied, observing the CAPS is a bit pointless with "-i".
I would suggest using this:
/usr/sbin/ioreg -p IODeviceTree -n battery -w 0 |grep Bat
And the OP (Frank) might be better off using XBattery, which is very pretty. Or GÆran Larsson's well-written shell script: battery. Or my poorly written batmon, especially if he has a "problem" battery.