Created
May 31, 2017 02:20
-
-
Save rrbutani/c6294ae85c8b14bb1ae8bee08bd50357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run every 0th, 30th second: | |
while true; do while [[ "$(date +%S)" -ne "30" && "$(date +%S)" -ne "0" ]]; do date +%S; sleep 1; done; echo "hi!"; while [[ "$(date +%S)" -eq 0 || "$(date +%S)" -eq 30 ]]; do : ; done; done | |
# Dump energy-rate every ~20 seconds (drifts) | |
while true; do upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep energy-rate | cut -d " " -f 14 | tee batt_log_discharge-05-30-2017.txt; sleep 20; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment