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/sh -e | |
hostname=$1 | |
device=$2 | |
file=$HOME/.dynv6.addr6 | |
[ -e $file ] && old=`cat $file` | |
if [ -z "$hostname" -o -z "$token" ]; then | |
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]" | |
exit 1 | |
fi |
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
1. install telnet on your computer | |
2. install expect on your comptuer | |
3. create the a file withthe code of turnOnTV.sh | |
4. change permissions on that file (chmod 500 turnOnTV.sh) | |
5. create eventually a cron job to run this script.(50 5 * * * expect ~/scripts/turnOnTV.sh) | |
You need to set permission to file be read by the owner (400) and allow it execution by the owner (100). |
NewerOlder