PS: Here's the heyu script that I use with PowerCenter:

Code:
--------------------
    
  #!/bin/sh
  Script to emulate heyu utility.  Called by Peter Watkin's LMS PowerCenter 
plugin.  
  # Uses netcat to send X10 commands via mochad controlling a CM19A USB 
transciever.
  
  # Make sure mochad is running..
  
  BINFILE=$(cat /etc/udev/rules.d/91-usb-x10-controllers.rules | sed -n -e 
'0,/^.*\"\(\/.*\)\"/s//\1/p')
  
  if [ $(pgrep -f "$BINFILE" | wc -l) -lt 1 ]; then
        eval "$BINFILE"
        sleep 3
  fi
  
  # CM19A control via mochad
  echo rf $2 $1 | nc -w 3 localhost 1099
  
  exit 0
  
  
--------------------


------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=99977

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to