#!/bin/bash if [ "`cat /var/state/x10/printer`" = "$1" ] then ### Modify a1 on the following line to the address of your printer ### /usr/local/bin/heyu turn a1 off rm -f /var/state/x10/printer fi