TiVo Community Forum banner

x_y_of_z_posts

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #21
OK, the challenge is out there to all the UK'ers -- how does one shut down TivoWeb using 2.5.5 software?

As for the shell commands, I don't think it executes .profile or anything when it starts. I think you may be having success because you went to bash, executed .profile, and had your paths set. I think they need to be set explicitly in one of the boot scripts, like rc.sysinit or rc.sysinit.author.

For multiple commands, construct a single line that does everything you want it to do. For example, the following sets the directory, sends a line return and then does an ls on that directory:

cd /var/hack/bin \n ls

This is really kind of fun, isn't it?
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #22
Thanks to mini_me from the UK, the TivoWeb shutdown puzzle has been solved, I think. Please try out the latest version (top post in this thread) and let me know.
 

·
TiVoer since 11/2000
Joined
·
x_posts
The reason it didn't work is beacuse local loopback is disabled by default on UK TiVos for some reason.

You need to issue a

ifconfig lo up

first.
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #25
I left the old loopback command in just in case TivoWeb wasn't responding and this might work instead. Since, as you noted, it disappears, I figured it was harmless to leave it in and it just might help one of us yanks.
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #26
Just posted a new beta -- tightened up the code and made the file 20% smaller. Other than displaying the version number, no real difference in functionality.
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #27
The latest beta version (top post in this thread) has a separate .cfg file which can be edited directly from the module (thank you tivo-onion and sanderton).

Since it is unlikely that the release configuration file will change, future updates to hackman won't require additional adjustments to your .cfg file.

All this will make initial installation and subsequent updating much easier.
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #28
I borrowed a little too much from tivo-onion's code and was trying to call a subroutine that lives in managedailymail.itcl. Worked fine as long as managedailymail.itcl was installed, but failed miserably when it wasn't. Plus it was unnecessary. So I pulled the offending line of code and have posted version 1.08 beta.
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #29
Maintenance, housekeeping and general tidying up are the hallmarks of this latest beta version, available in the first post of this thread.
 

·
Registered
Joined
·
x_posts
PortlandPaw, excellent module thanks. Already coming in very handy when FTP stops working! Two slight problems though. When going from Tivoweb 1.9.4 to Tivowebplus and vice-versa the top section of the Tivoweb is duplicated with inverted colours (exactly the same as Tivo-Onions Dailymail module did). Also, with the newest version when I edit the .cfg file in TiVoweb it overwrites the rc.sysinit.author.edit file rather than the hackman.cfg file. I have Stuart's Startup editor installed so I suspect the problem is the same as TiVo-Onions was here
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #31
Two good catches, Professor! I'm aware of the double-headed transition page and it has to do with terminating TivoWeb midstroke. I tried putting in and removing html_end commands, but I think the problem has to do with the rug being pulled out from under TivoWeb when it shuts down. I now consider it a transition "feature." If only half were 1.9.4. and the other half TivoWebPlus. Now that would be cool!

Thanks for the catch on the edit_save section. It's funny what plagarism will do to you.

I'm adding the ability to edit other text files, such as crontab, and any other /var-resident startup file, so watch for the next beta, maybe as soon as later tonight.

And thanks for the kind words.
 

·
Registered
Joined
·
x_posts
Two different versions of Tivoweb would definitely be cool!I like the sound of being able to edit other text files remotely. I can break TiVo from work then ;)
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #33
This latest beta version (first post in thread) "borrows" sanderton's startuped.itcl concept and expands it to allow editing of other text files, such as config files for TCS, TivoWeb and hackman itself. Comments will be welcome as I approach the end of the beta stage.

Just don't remotely break your TiVo!
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #34
The latest beta version (first post in this thread) is either a terrific service to the TiVo community or its ruination. I've added the ability to safely edit the /etc/rc.d/rc.sysinit and rc.sysinit.author files. Mounting, remounting, chmod'ing, UNIX format are all taken care of. You'll note I said safely edit the file. I have no control over how people edit it, and therein lies the danger. This may be too simple and too much power in the hands of an inexperienced user.

But I've put big red warnings in the editing module and warnings in the readme files and so, acting under the assumption that we're all responsible adults willing and able to be accountable for our own actions, I offer this tool.

Now, to paraphrase Prof. Yaffle, you have the power to ruin your TiVo from anywhere in the world! Use this power wisely, Grasshopper.

(And, yes, I've tried editing my own rc.sysinit and it worked fine for me)
 

·
Registered
Joined
·
x_posts
Great stuff again PortlandPaw :)

A couple of really minor things:

An extra " has crept into this line:

0 {set popup [html_link "javascript:eek:Popup1.show(400, 100, 300, 185);" [lindex $appnamelist 0]]"}

Reload TivoWeb says "start/stop" which I always end up editing to say stop/start ;)

13 {set popup [html_link "javascript:eek:Popup7.show(400, 100, 300, 162);" "Reload (start/stop) $tw"]}

Your readme.html uses the old variable names for Tivoweb & Tivowebplus

Favorite should be favourite............. ok, I'm pushing my luck ;)

Thanks again.
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #36
Fozzie, thank you for the excellent catches...except for that favourite thing, that is. Maybe I should find an anglo-neutral alternative, such as "preferred" or "popular." I think I've dodged this issue practically everywhere else in hackman.
 

·
Registered
Joined
·
x_posts
Anglo-neutral?? No such thing ... there is only one correct way to spell favourite and it includes the 'u' (this is what happens when a Canadian wades into this ... lol).

Actually, hackman gets better and better with each beta, esp. the switch to a separate config file. My only comment is that when I went to 1.10, I had to use a newer .cfg file and edit it. It would be great if you could indicate which new betas require updating the .cfg file and which ones won't? Just as a convenience.

Thanks again for the great module!
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #38
Will do, Soapbox Kid. I'm working on adding an option to create a secondary startup file (rc.sysinit.author, hacks_callfromrc.sysinit, rc.sysinit.author.edit). I think this with each feature I add, but I think I'm getting close to the end of the development string. That is unless I get any other bright ideas or any of you do.
 

·
Woodstock-era Hacker
Joined
·
x_posts
Discussion Starter #39
As promised, the top of this thread has the latest beta which includes the ability to create a secondary startup file (rc.sysinit.author, hacks_callfromrc.sysinit, rc.sysinit.author.edit). The .cfg file contains a few added comments, but is functionally identical to the prior beta version 1.11.
 
x_y_of_z_posts
Top