Created
September 16, 2020 19:49
-
-
Save sarfata/72c144a9b5075316e7f4a708abe0bf5c to your computer and use it in GitHub Desktop.
Script to run from crontab to debug CPU lockup issues on a Raspberry Pi
This file contains 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
#!/bin/sh │ | |
│ | |
LOG=/home/pi/iamalive.log │ | |
│ | |
date >> $LOG │ | |
uptime >> $LOG │ | |
ping -c 1 192.168.1.1 |grep 'transmitted\|rtt' >> $LOG │ | |
echo >> $LOG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crontab: