Updated: January 2004
Index Return to Main Contents
NAMEon_ac_power - test whether the computer is running on line power
DESCRIPTIONThe command succeeds (status 0) if the system is using line power and fails (status other than 0) otherwise. It is designed to be easy to use in shell scripts.
0 (true) System is on line power 1 (false) System is not on line power 255 (false) Power status could not be determined
/proc/apm APM status information file /proc/acpi ACPI status information directory
AUTHORThis manual page was written by Steve Dodd <email@example.com> and was updated by Thomas Hood.