battery_nag.sh, only run if not already running.

This commit is contained in:
me committed 2026-08-19 14:47:06 -07:00
1 parent b0620734b6
commit 8ec82bd3f1
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -2,6 +2,15 @@
# 20260819 - Hyperling
# Alert the user every so often once the battery is low.
echo "`date` - Checking Active Programs"
ps -ef | grep battery_nag.sh | grep -v grep
active="$?"
if [[ "$active" == 0 ]]; then
echo "Program already running, exiting."
exit 1
fi
echo "`date` - Loading Functions"
which battery.function