Query: on_ac_power
OS: linux
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ON_AC_POWER(1) General Commands Manual ON_AC_POWER(1)NAMEon_ac_power - test whether computer is running on AC powerSYNOPSISon_ac_powerDESCRIPTIONon_ac_power checks whether the system is running on AC power (i.e., mains power) as opposed to battery power.OPTIONSNone.EXIT STATUS0 (true) System is on mains power 1 (false) System is not on mains power 255 (false) Power status could not be determinedFILES/proc/apm APM status information file /proc/acpi ACPI status information directoryAUTHORThis manual page was written by Steve Dodd <steved@loth.demon.co.uk> and was updated by Thomas Hood. 9 March 2002 ON_AC_POWER(1)
| Related Man Pages | 
|---|
| pm-powersave(8) - debian | 
| apm(1) - sunos | 
| apm(1) - x11r4 | 
| apm(1) - opendarwin | 
| apm(1) - plan9 | 
| Similar Topics in the Unix Linux Community | 
|---|
| issues involving sshd, display and apache. | 
| Battery always 0% | 
| Funny *NIX commands |