This will make the webserver call as a background task, so control will be given back to the service immediately, rather than it waiting for the wget to complete.
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
echo Calling energenie socket... | |
wget --quiet --background --output-document="callenergenie.log" "http://192.168.1.99/callenergenie.php?delay=10&switch=2&state=off" | |
echo Sleeping for 2 seconds | |
sleep 2 | |
echo Done. | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment