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. May 3, 2004 #61 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    The latest beta (top of thread) adds support for editing the data files for LJay's new "What's On" module and for moviesort. In addition, the ability to edit any read/write file is added. Updaters should copy both hackman.itcl and hackman.cfg.
     
  2. May 23, 2004 #62 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    It's been about a month and the latest version of hackman has been downloaded well over a hundred times and I haven't heard any further complaints or bug reports. So I think it's time to declare the project finished (for now) and designate the latest release as Version 1.0.

    Nothing other than the version designation has been changed from Beta 1.16, so there's no real need to download this other than to ensure that you have the latest version.

    Of course, if any problems arise, or if there are requests for other features or support for new hacks, please make those requests known here.
     
  3. May 24, 2004 #63 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    A great hack and one of my most used :)
     
  4. May 24, 2004 #64 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thank you, Fozzie, it's great to have a cheering section!
     
  5. May 24, 2004 #65 of 1645
    cachecard_user

    cachecard_user New Member

    244
    0
    Dec 26, 2003
    NYC
    ok, how about a hack to start/stop cachecard caching?

     
  6. May 25, 2004 #66 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Two problems:

    1. I don't have a cachecard, so I couldn't test it.

    2. Testing would be necessary, as I'm very uncertain how to send a ctrl-c without some experimentation.

    You would certainly be able to at least start cachecard from hackman using the bash command line feature.

    If anybody has a surefire method for sending a ctrl-c through an "exec /bin/bash -c XXX" type command, please let me know. Then I could set it up and PM it to you for testing. Also, how much time should elapse between the cachectl command and the ctrl-c? And where does cachctl live on your box?
     
  7. May 25, 2004 #67 of 1645
    cachecard_user

    cachecard_user New Member

    244
    0
    Dec 26, 2003
    NYC
    i guess that you can do a ps ax and scan to find the cachctrl process pid, then send a kill command. You can kill it as soon as you can.
     
  8. May 25, 2004 #68 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    cachecard_user, please tell me if the ps ax/kill pid method works to shut down the cachecard. That is what hackman does now to stop programs.

    But I suspect that jafa is giving you his method because kill reboots the TiVo. But if it doesn't and if it shuts down politely, then I can definitely add cachecard support to hackman. Let me know.
     
  9. May 26, 2004 #69 of 1645
    arthur

    arthur Member

    12
    0
    Sep 6, 2001
    To send a CTRL+C use SIGINT
    To send a CTRL+BREAK use SIGQUIT

    example:

    kill -INT <pid of the process that will receive the CTRL+C>
     
  10. May 26, 2004 #70 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thank you, Arthur. That helps.

    Here's what I need to create a prototype for testing:
    1. Path to cachecard
    2. Answer to question re: killing cachecard with PID (kill <PID>) -- does it reboot TiVo?
    3. Answer to question re: Will Arthur's method alone do it? (kill -INT <PID>) -- without running "cachectl -n -t" first
    4. Time elapsed between the cachectl command and the ctrl-c in the method suggested by jafa

    What I really need to know is which of the following sets of commands shuts down cachecard gracefully:
    1. kill <pid>
    2. kill -INT <pid> (may have to experiment with case)
    3. cachectl -n -t
    kill -INT <pid>
    All of these depend on running ps ax first to determine cachectl's pid.

    If somebody with a cachecard will do a little telnet experimentation and fieldwork for me, I can whip up an experimental version to try.
     
  11. May 26, 2004 #71 of 1645
    cachecard_user

    cachecard_user New Member

    244
    0
    Dec 26, 2003
    NYC
     
  12. May 26, 2004 #72 of 1645
    arthur

    arthur Member

    12
    0
    Sep 6, 2001
    You're most welcome, I'm glad it helped.
     
  13. May 26, 2004 #73 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Cache, alright, this is all very good news. Just one more favor...believe it or not, everything will be simpler if a simple kill <pid> will do the job. That way, I don't have to create an exception for cachecard and I can shut it down the way I'm shutting down most other apps. So could you please see if (in the example above) kill 239 does the trick with no adverse effects?

    And do you have to run cachectl -n -t first, or is there a cachectl app already running?
     
  14. May 26, 2004 #74 of 1645
    cachecard_user

    cachecard_user New Member

    244
    0
    Dec 26, 2003
    NYC
    cachectl has to be invoked, and terminates when it is finished testing and/or prefetching. As to weather we are doing anything constructive... I have to defer to Jafa.



     
  15. May 27, 2004 #75 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Anyone with a cachecard is invited to try out this experimental version of hackman with cachecard support.

    Basically, what it does is start cachecard with:
    cachectl -n

    And stop it with
    cachectl -n -t
    followed by a ctrl-c

    Please let me know if this works, and if it does I'll add it to the general release version.

    (obsolete attachment deleted; see end of thread)
     
  16. May 27, 2004 #76 of 1645
    cachecard_user

    cachecard_user New Member

    244
    0
    Dec 26, 2003
    NYC
    i've been too busy to properly thnk you for a great app and the new cachecard support... I'm going to try it now.
     
  17. May 27, 2004 #77 of 1645
    cachecard_user

    cachecard_user New Member

    244
    0
    Dec 26, 2003
    NYC
    ok good news: starts no problem

    now bad news :

    ....
     
  18. May 27, 2004 #78 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    That I can fix.

    But I've been thinking about this and I need to understand how cachecard works a little better. I'm assuming that there is no app always running while cachecard is operational...that you start it with cachectl, that app terminates and then you run cachectl again (with ctrl-c) to stop it.

    This means that there is no application-related way to tell if cachecard is active or not. That means that hackman will look at the list of running apps, not find cachecard and only offer "start" as an option.

    So my question is, how do you tell (from software) if cachecard is active or not? Then I can set the state of the start/stop button appropriately.

    Or, if there is no good way to tell if cachecard is active, I can set up some kind of toggle to keep track of the status.

    So please let me know if there's a way to check the cachecard status and I'll pick up from there.

    And thank you for the kind words about hackman; greatly appreciated.
     
  19. May 27, 2004 #79 of 1645
    nosaj56

    nosaj56 New Member

    13
    0
    Apr 5, 2004
    How about elseed and ccxstream? Thanks. :)
     
  20. May 27, 2004 #80 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Okay, for each of these hacks please tell me:
    1. The full path and name to the hack
    2. The command used to start the hack
    3. The command used to stop the hack (if any)

    I don't have either of these hacks installed on my SA1 box, so I'll have to do what I'm doing with cachecard, i.e. put together an experimental version and let you tell me if it works.
     

Share This Page