View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Nov 17, 2003 11:12 pm 
Offline
Joined: Mon Nov 17, 2003 10:57 pm
Posts: 1
Does anybody have any advice about how ro get changechannel.sh to run with Knoppix?

I implemented MythTV on RH9 and everything worked pretty well, including the changechannel.sh script (written by Ian Forde). I then upgraded to Knoppix but I am unable to get the script working. It complains of an "unexpected end of file".

The script is

#!/bin/sh

# Change Channel Script Wrapper for DCT-2000
# written by Ian Forde
# License: GPL. If you don't know what that is,
# you can look it up!

PARM=$1
PARMLEN=`echo $PARM | wc -c`
if [ ${PARMLEN} -gt 4 ]; then
echo "too high."
exit
elif [ ${PARMLEN} -eq 4 ]; then
newparm=${PARM}
elif [ ${PARMLEN} -eq 3 ]; then
newparm="0"${PARM}
elif [ ${PARMLEN} -eq 2 ]; then
newparm="00"${PARM}
fi

/usr/local/bin/remote.py ${newparm}


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu