<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE> Firewire script to check which node is active and change channel with the right node.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I, like others, find that from time to time my cable box changes node as can be seen from using plugreport.&nbsp; I wrote this little script to check which node it was on and then call 6200ch.exe to change channel/record to avoid lost recordings.&nbsp; Thought it might be of more general interest so here it is.<BR>
<BR>
<BR>
<BR>
#!/bin/sh<BR>
#$1 is the first argument to the script. It is the channel as passed by mythtv<BR>
<BR>
NODE=$(plugreport |grep -B 2 bcast_channel|grep Node|cut -d &quot; &quot; -f 2)<BR>
/usr/local/bin/6200ch.exe -n $NODE $1<BR>
<BR>
save this as say channel.sh and use it as the channel changer.<BR>
<BR>
James<BR>
</FONT>
</P>

</BODY>
</HTML>