On Wed, May 02, 2001 at 02:01:26PM -0400, Alan Shutko wrote: >Arthur Korn <[EMAIL PROTECTED]> writes: > >> Looking at apmd(8), it seems "change power" would fit, but >> unfortunately it doesn't tell you wheter AC was plugged in or >> out. > >Your script could query `apm | grep on-line` or something.
The apmd package contains a little program called /usr/bin/on_ac_power to determine the AC/battery status. Regards, -- Brendan O'Dea bod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633