Created
February 27, 2012 11:41
-
-
Save s0enke/1923191 to your computer and use it in GitHub Desktop.
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/bash | |
while [ 1 ] | |
do | |
for (( i = 1 ; $i < 4 ; i++ )) | |
do | |
echo -e "Sw_on$i""user\x00\n" | nc -u -q 1 dev-steckdose01.jimdo.office 75 | |
echo $i ON | |
sleep 0.5; | |
done | |
for (( i = 3 ; $i > 0 ; i-- )) | |
do | |
echo -e "Sw_off$i""user\x00\n" | nc -u -q 1 dev-steckdose01.jimdo.office 75 | |
echo $i OFF | |
sleep 0.5; | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment