#!/bin/sh
REMOTE_NAME=SKY
for digit in $(echo $1 | sed -e 's/./& /g'); do
  irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME $digit
  sleep 0.4 # note, you may have to tweak the interdigit delay up a bit
done
irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME BACKUP
exit 0

