on_ac_power
A simple utility which tests if a computer is running on line power. tldr-pages
On several platforms
Several platforms
A simple utility which tests if a computer is running on line power. Returns 0 if yes, and 1 if no.
Test if a computer is running on line power
on_ac_powerIdentify