PDA

View Full Version : mvchannels problem


HUGE
09-01-2002, 03:24 PM
I have doen the following:

1. cd /var/hack <enter>
2. From bash ZMODEM transfer the files to /var/hack :
a. rz <enter>
b. Click on File->Transfer->ZMODEM->Send
c. In the file dialog panel, find the 3 files that you unzipped (mvchannels.tcl, main.dat, channels.dat)
d. Hold down Ctrl key and click on each file so that all 3 are highlighted
e. Click Open button and the 3 files will be transferred to /var/hack
f. <enter> to get bash prompt back
3. chmod +x mvchannels.tcl <enter>
4. ./mvchannels.tcl reload <enter>
5. Wait until complete
6. ./mvchannels.tcl <enter>
7. Wait until complete
8. Check guide for channels


I then added the followingf line to the end of my rc.sysinit file:
/var/hack/mvchannels.tcl -loop=0 -sdelay=3 -file=/var/hack/channels.dat > /dev/null &


Everything looks fine ( the channels I do not want are gone), but when I reboot the channels I do not want show up again. Is there something wrong with my rc.sysint file?

It's permissions is set to: rwxrwxrwx

Could that be the problem?

Thanks,


HUGE

quantum_3
09-01-2002, 03:31 PM
try this with your rc.sysinit file instead:


/bin/bash < /dev/ttyS3 >& /dev/ttyS3 &

if [ -e /etc/SubTest]; then
if [ -x /tvbin/fixsub.tcl]; then
echo "Surgeon's Sub Test" > /etc/SubTest
/tvbin/fixsub.tcl
fi
fi

[ ! -f /etc/rc.d/rc.sysinit.author ] || /etc/rc.d/rc.sysinit.author

sleep 240
while [ -f "/var/hack/channels.dat" ]
do
/var/hack/mvchannels.tcl -file=/var/hack/channels.dat > /dev/null
sleep 300
done &

echo "rc.sysinit is complete




the change starts at
"sleep 240" just add it to the ENd of the file

it worked for me...good luck

BubbleLamp
09-01-2002, 08:15 PM
You probably need to lower the delay between loops. Add a -delay=3 statement to your command line. If that works, you can try 4. I've found 5 is too long, and the channels drop back.

HUGE
09-01-2002, 09:06 PM
I will try that edit. I do not have to chmod +x the file right?

HUGE

BubbleLamp
09-01-2002, 09:23 PM
Originally posted by HUGE
I will try that edit. I do not have to chmod +x the file right?

HUGE

Not sure which file you mean, rc.sysinit does have to be executable.

HUGE
09-01-2002, 10:24 PM
That is what I meant. It just seemed to me that if I had the lone correct - why wouldn't it run? So i though maybe the permissions on the rc.sysinit were wrong. My Tivo is recording stuff right now, so when it done I will try the new edits.


Thanks,

HUGE

sqrl
09-01-2002, 10:34 PM
I found that when the longgggg line is added to sysinit it wraps and that adds a cr at the end of it so it never sees the whole command.
After you enter the whole line go back to the end of the first line and do a ^d and it will bring the second line back up eliminating the cr. Then the command will execute

HUGE
09-01-2002, 11:07 PM
Hey Cool, I'll try that first.