Date: Tue, 15 Apr 2008 09:33:21 -0700 From: "Kevin Downey" <redchin@gmail.com> To: Jeff <jeff@doeshosting.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: For those using PVR-XXX Message-ID: <1d3ed48c0804150933i57e198dcu27919d0c4615e30@mail.gmail.com> In-Reply-To: <895C58D6-609C-4D81-8F2E-F5148226149A@doeshosting.com> References: <80f4f2b20804080605x4a2e063av4327e8480d0ac9e7@mail.gmail.com> <200804081339.m38DdVWD006894@lava.sentex.ca> <80f4f2b20804080714s437adf26n3890ab01737334ff@mail.gmail.com> <1d3ed48c0804080721s1395a0c9wc72bcc6b9df50037@mail.gmail.com> <c39ec84c0804110805s384d34b8x705786e48038dd40@mail.gmail.com> <895C58D6-609C-4D81-8F2E-F5148226149A@doeshosting.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 15, 2008 at 12:59 AM, Jeff <jeff@doeshosting.com> wrote: > I made a lil script to help me be lazier while changing channels. I do not have a remote anymore, so I must do it at console. In case anyone is going to make something similar for themselves, here is mine so you do not need to: > > it expects a file in the same dir named chaninput containing only the following: > <channel number> <frequency> > for example: > 2 55.25 > 3 61.25 > 4 67.25 > > > the script is as follows: > > #!/bin/sh > start=`head -n1 chaninput|awk '{print $1}'` > finish=`tail -n1 chaninput|awk '{print $1}'` > echo "echo \"What channel do you want?\" " > channel-change.sh > echo "echo \"Please choose a number between $start and ${finish}\" " >>channel-change.sh > echo "read chan" >> channel-change.sh > echo "case \$chan in" >> channel-change.sh > for i in `cat chaninput|awk '{print $1}'` > do > echo " ${i}) " >>channel-change.sh > freq=`grep -w -e ^${i} chaninput|awk '{print $2}'` >>channel-change.sh > echo " pvr250-setchannel $freq " >>channel-change.sh > echo " ;; " >>channel-change.sh > done > echo "esac" >>channel-change.sh > chmod +x channel-change.sh > > > It then outputs a script named channel-change.sh which is ready to change channels for you. > I did not make this for real public release, mainly because it is so simple, but I figure maybe someone besides myself would get use from it. > > -krzee > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > channel(){ /usr/local/bin/pvr250-setchannel `egrep \^$1\ $HOME/cable.txt|cut -f 2 -d \ ` } where cable.txt is a list of channels and freqs. I think I got mine off wikipedia. http://en.wikipedia.org/wiki/North_American_cable_television_frequencies -- The Mafia way is that we pursue larger goals under the guise of personal relationships. Fisheye
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d3ed48c0804150933i57e198dcu27919d0c4615e30>