Filename display.sh
Code: Select all
#!/bin/bash
/home/pi/domoticz/scripts/exp sommar2013 ssh -t [email protected] xset -display :0.0 dpms force on
Code: Select all
#!/usr/bin/expect
set timeout 20
set cmd [lrange $argv 1 end]
set password [lindex $argv 0]
eval spawn $cmd
expect "assword:"
send "$password\r";
interact