Created
May 20, 2021 23:02
-
-
Save davehng/313856a6f41ef6b447e2d45898121fcb to your computer and use it in GitHub Desktop.
bash script to restart opensprinkler
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
#!/bin/bash | |
echo `date`: Rebooting opensprinkler >> /home/user/sandbox/os/log.txt | |
curl -s "http://192.168.1.20:80/cv?pw=[md5hashedpassword]&rbt=1" >> /home/user/sandbox/os/log.txt | |
echo >> /home/user/sandbox/os/log.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment