Plan 9 from Bell Labs’s /n/sources/contrib/nemo/rc/bin/env/x10outside

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


#!/bin/rc
sleep 40
rfork ne
while(;){
	if (test -e /devs/x10/a4 ){
		if (grep on /devs/x10/a4 >/dev/null)
			ssh knoppix@outside 'export DISPLAY=:0 ; xset dpms force on'
		if not
			ssh knoppix@outside 'export DISPLAY=:0 ; xset dpms force off'
	}
	if (test -e /devs/x10/who:outside){
		if (grep on /devs/x10/who:outside >/dev/null)
			ssh knoppix@outside 'export DISPLAY=:0 ; xset dpms force on'
		if not
			ssh knoppix@outside 'export DISPLAY=:0 ; xset dpms force off'
	}
	sleep 5
}

(This is a user-contributed directory and
should not be interpreted as statement by Alcatel-Lucent.)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.