Start monitor on diffrent computer

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
alveman
Posts: 21
Joined: Wednesday 29 January 2014 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Start monitor on diffrent computer

Post by alveman »

I want to start a monitor on another computer via SSH. I have now created two script for this and it works well if I run these trough the command shell but not via Domoticz script://display.sh do you have any ideas on why?

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
Filename exp

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest