PDA

View Full Version : Daily Call Script



BenD
17-02-2006, 09:16 PM
Hey guys,

I am using a wireless bridge connected to my tivo to perform the daily call.
The problem is that it seems the bridge "goes to sleep".
I have to ping the bridge a few times before it wakes up and i can connect to Tivonet. Therfore the update fails from time to time as i asume it times out before the bridge wakes up.

Anywais, my question is what script / process / command gets run when a daily call is performed ? I want to be able to add something to the script such as a ping command from the tivo to the default gateway before the call is made ???

Cheers,
BD

BenD
17-02-2006, 09:20 PM
I have been doing some investigating and come across the file forcedailycall.tcl Is this the file that gets run ?

How would i add a ping command to the start of this file ?


#!/tvbin/tivosh
exec /hack/bin/newtext2osd --fg white3 -s 10 -x 8 -t "Making daily call now"
set Daily [binary format c20 "127 -60 126 100 127 -1 -15 -80 1 -78 92 -56 127 -18 -5 116 127 -75 -91 -8"]
event send $TmkEvent::EVT_DIALUPEVENT 0 $Daily

DJC
18-02-2006, 06:52 AM
try adding an "exec ping -c <count> <address>" at the top

eg



#!/tvbin/tivosh
exec ping -c 5 <address>
exec /hack/bin/newtext2osd --fg white3 -s 10 -x 8 -t "Making daily call now"
set Daily [binary format c20 "127 -60 126 100 127 -1 -15 -80 1 -78 92 -56 127 -18 -5 116 127 -75 -91 -8"]
event send $TmkEvent::EVT_DIALUPEVENT 0 $Daily
:

thomson
18-02-2006, 08:06 AM
I have been doing some investigating and come across the file forcedailycall.tcl Is this the file that gets run ?

The ping command can be added as DJC has mentioned... but this command is not the one run for the automated daily call. If I were you I would run this command from cron every morning (2am?) as this way you can control when the daily call is being made and avoid some other potential issues.

BenD
18-02-2006, 09:32 AM
Thanks very much guys !

Just out of intrest what gets run when the daily call gets made ?

thomson
18-02-2006, 02:01 PM
Just out of intrest what gets run when the daily call gets made ?

I don't know for sure, but if you are talking about the v3.0 software then I think it is all internal to the tivoapp binary. I do not think there is a pre or post script that could be modified. I think under v2.5.5 there is a postscript, but am unsure if there is a pre.

You are still better off forcing a daily call to occur when you want, otherwise it could still be indexing information when you wish to use it which can cause issues (this has been partially worked around by having the guide data start a few days ahead).