![]() |
![]() |
|
|
Compare Products, Prices & Stores For: COMPUTERS, COMPONENTS, COMPUTER ACCESSORIES, COMPUTER MEMORY, HARDWARE, INPUT DEVICES, NETWORKING, PDAs & MOBILE ELECTRONICS, SOFTWARE, STORAGE & MEDIA, DIGITAL CAMERAS, HOME AUDIO, TV& VIDEO |
|
|
|
|
#511
|
|||
|
|||
|
Quote:
Code:
[~/tivoweb-tcl][567]$ echo "puts \"[clock seconds] / \ [exec date] / [clock scan [exec date]] / [exec date -u] / \ [clock scan [exec date -u]]\"" | tivosh 1075171839 / Mon Jan 26 18:50:39 PST 2004 / 1075171839 / Tue Jan 27 02:50:39 UTC 2004 / 1075171840 [~/tivoweb-tcl][568]$ date;date -u Mon Jan 26 18:52:19 PST 2004 Tue Jan 27 02:52:20 UTC 2004 Last edited by RUBiK; 01-26-2004 at 09:56 PM. |
|
#512
|
|||
|
|||
|
Quote:
set tzoffset [expr round(([clock scan [lreplace [exec date -u] 4 4]] - [clock seconds] + [get_tzoffset $setuptz $daylightsavings])/60.0)*60] Be sure to stop and restart TWP after making this change. falcontx Last edited by falcontx; 01-26-2004 at 10:29 PM. |
|
#513
|
|||
|
|||
|
Quote:
Thanks much! Appreciate it. |
|
#514
|
|||
|
|||
|
Quote:
Here's a good (or bad example:Code:
proc SaveNames { namestr } {
regsub -all { } $namestr "_" namestr
if { [regexp {(.*),(.*)} $namestr] } {
regsub -all {,_} $namestr " " namestr
if { [regexp {(.*)[;:](.*)} $namestr] } {
if { [regexp {(.*);(.*)} $namestr] } {
regsub -all {;_} $namestr " " namestr
}
if { [regexp {(.*):(.*)} $namestr] } {
regsub -all {:_} $namestr " " namestr
}
}
__________________
Thomson UK Series 1 StandAlone with 2x120 Gig Seagate disks. |
|
#515
|
|||
|
|||
|
Quote:
falcontx |
|
#516
|
|||
|
|||
|
Quote:
Do you want me to reindent all the rc2 code, and ship you an archive then? It's relatively easy to do, and has found me some bugs in some of the modules I've downloaded previously, as the brackets didn't all match! Of course, your code base may well have changed since you made rc2 available...
__________________
Thomson UK Series 1 StandAlone with 2x120 Gig Seagate disks. |
|
#517
|
|||
|
|||
|
Quote:
falcontx |
|
#518
|
|||
|
|||
|
The main thing is to be consistent -- pick a style and stick with it; it doesn't matter what style, as long as it's reasonably legible. And everyone on the project should adhere to the chosen style.
I don't know what the fashions are in TCL, but in my own C code, I like to use the equivalent of "indent -kr -i8", with the added rule that no line should be over 80 characters. (To that end, I sometimes use four-space intervals, or even smaller, instead of tabs.) Other people have different ideas. Last edited by TheWickedPriest; 01-27-2004 at 04:42 PM. |
|
#519
|
|||
|
|||
|
Killing TivoWebPlus pid reboots my box
First off: TivoWebPlus ROCKS my world, thank you thank you whomever worked on this fantastic piece.
Sometimes it locks up, and attempting to kill my TivoWebPlus process reboots my box. Box is HDVR2 I do a ps -ax to find the PID of my TivoWebPlus: 140 ? S 7:08 tivosh /usr/tivoweb-tcl/httpd-tt.tcl Then do a kill 140 It reboots my machine every time. Any ideas? Last edited by sublime; 01-27-2004 at 05:03 PM. |
|
#520
|
|||
|
|||
|
Quote:
The more interesting question is why the httpd locks up in the first place. Are you sure you are being patient enough? |
|
#521
|
|||
|
|||
|
Well, killing ANY process that is running under tivosh will reboot your box. Period end of story.
The only time I have had TivoWeb and/or TivoWebPlus lock up, is when my entire tivo locks up (ie. it won't take commands from the remote control either). It plays what ever it happened to be doing at the time just fine, but won't take any input. Generally I reboot at that point. Split Quote:
__________________
DSR6000 - 3.1 - 120gb HDVR2 - Just for hacking |
|
#522
|
|||
|
|||
|
Quote:
|
|
#523
|
|||
|
|||
|
Quote:
I had a feeling it had to do with the tivosh... Sleeper, No I am not running 4.x, I am running your ISO (thanks) on my HDVR2 with a few minor modifications. At times I have noticed the TivoWebPlus server does require a few minutes to catch up, then it comes back to life. Other times it has not come back for 20+ minutes. In that case I just force a reboot. If it occurs again, 'll try to dig deeper on which specific command it does not like. |
|
#524
|
||||
|
||||
|
Quote:
__________________
Four Hacked HDVR2's, One Still slightly confused Hacker, 4 dogs, 8 cats, and 1 wife that is happy as long as I don't screw up her TiVo ...... Oh yeah two grandchildren that are the light of my life!
|
|
#525
|
|||
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|