#!/bin/sh case $1 in g4On) # Send an email to the person when the unit G4 is turned on. echo "Unit G4 was just turned ON" | mail $USER ;; livinroom_on) # Sleep 5 seconds, then turn off the bedroom lights (g6) sleep 5 heyu turn g6 off ;; # uncomment the floowing line for debugging. # *) echo "The arg is \"$1\"" ;; esac