1ON_AC_POWER(1)                                                  ON_AC_POWER(1)
2
3
4

NAME

6       on_ac_power - test whether the computer is running on line power
7

SYNOPSIS

9       on_ac_power
10
11

DESCRIPTION

13       This manual page documents briefly the on_ac_power command.
14
15       on_ac_power  is  a command line program to test whether the computer is
16       running on line power
17

EXIT CODES

19       The command succeeds (status 0) if the system is using line  power  and
20       fails  (status  other  than 0) otherwise.  It is designed to be easy to
21       use in shell scripts.
22
23                 0 (true)
24              System is on line power.
25
26                 1 (false)
27              System is not on line power.
28
29                 255 (false)
30              Power status could not be determined.
31

SEE ALSO

33       pm-suspend (1).
34

AUTHOR

36       This manual page was written by Richard Hughes <richard@hughsie.com>.
37
38
39
40                                 06 March 2007                  ON_AC_POWER(1)
Impressum