Run a script on battery remaining – Schedule Assistant for Power Manager

Power Source Events Task

Run a script when a battery reaches a specific percentage remaining; batteries include internal and external UPS devices. This task is included as part of Power Manager's Schedule Assistant and is part of the Power Source Events category of tasks.

Below are the steps that make the "Run a script on battery remaining" task.

Battery Remaining

Trigger when battery reaches

What battery capacity must be reached before triggering?

You select one of the following:

  • 10%
  • 20%
  • 30%
  • 40%
  • 50%
  • 60%
  • 70%
  • 80%
  • 90%


Script to run

Provide the script to run.

You enter a script. The script can be in any shell supported language. This includes python, perl, php, ruby, and shell script.


Event Name

Name the event performing this task.

You type a word or sentence.


Notes about why this event is needed.

You type a word, sentence, or paragraph.