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

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
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
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.