Skip to content

Instantly share code, notes, and snippets.

@s0enke

s0enke/gist:1923191

Created Feb 27, 2012
Embed
What would you like to do?
#!/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