Skip to content

Instantly share code, notes, and snippets.

@s0enke
Created February 27, 2012 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s0enke/1923191 to your computer and use it in GitHub Desktop.
Save s0enke/1923191 to your computer and use it in GitHub Desktop.
#!/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