1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hackman -- A Hack Manager module for TivoWeb

Discussion in 'TiVo Underground' started by PortlandPaw, Apr 11, 2004.

  1. Apr 16, 2004 #21 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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?
     
  2. Apr 17, 2004 #22 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  3. Apr 17, 2004 #23 of 1645
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    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.
     
  4. Apr 17, 2004 #24 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Yippee - stopping/starting and switching between Tivoweb versions now works for me :) Thanks.

    I don't know if this is 'normal' behaviour but although the tivoweb process is killed immediately, the '/tvbin/http_get -U http://127.0.0.1:80/quit -D /tmp -T 0 -C' process hangs around for a couple of minutes before dying of its' own accord?
     
  5. Apr 17, 2004 #25 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  6. Apr 18, 2004 #26 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  7. Apr 19, 2004 #27 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  8. Apr 21, 2004 #28 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  9. Apr 21, 2004 #29 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Maintenance, housekeeping and general tidying up are the hallmarks of this latest beta version, available in the first post of this thread.
     
  10. Apr 22, 2004 #30 of 1645
    Prof. Yaffle

    Prof. Yaffle Member

    255
    0
    Aug 2, 2002
    Nottingham
    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
     
  11. Apr 22, 2004 #31 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  12. Apr 22, 2004 #32 of 1645
    Prof. Yaffle

    Prof. Yaffle Member

    255
    0
    Aug 2, 2002
    Nottingham
    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 ;)
     
  13. Apr 22, 2004 #33 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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!
     
  14. Apr 23, 2004 #34 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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)
     
  15. Apr 23, 2004 #35 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    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.
     
  16. Apr 23, 2004 #36 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  17. Apr 23, 2004 #37 of 1645
    The Soapbox Kid

    The Soapbox Kid New Member

    5
    0
    Feb 28, 2004
    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!
     
  18. Apr 23, 2004 #38 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  19. Apr 23, 2004 #39 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    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.
     
  20. Apr 23, 2004 #40 of 1645
    David Platt

    David Platt !Texas TCF Club

    10,469
    8
    Dec 13, 2001
    Portland, OR
    Just installed the latest beta, and this thing simply rocks, PP!! It's come a long way in just the short time you've been working on it.
     

Share This Page