Page 1 of 79 1231151 ... LastLast
Results 1 to 15 of 1176

Thread: Hackman -- A Hack Manager module for TivoWeb

  1. #1
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812

    Hackman -- A Hack Manager module for TivoWeb/Plus

    Information describing hackman and how to download the package may be found in the files forum.

    This thread may now be considered to be the support thread.
    Last edited by PortlandPaw; 12-05-2004 at 01:01 PM.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  2. #2
    Join Date
    Nov 2002
    Posts
    110
    Just installed this, looks good.

    One thing with the bash command line. It seems I have to type in the full path to the command I want to execute e.g. "/var/hack/bin/ls". Does it not pick up the PATH then?

  3. #3
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    Quote Originally Posted by mbriody
    Just installed this, looks good.

    One thing with the bash command line. It seems I have to type in the full path to the command I want to execute e.g. "/var/hack/bin/ls". Does it not pick up the PATH then?
    I can run ls OK, but it just returns the listing for the current directory, whatever that might be. I don't think it executes .profile or anything as it doesn't recognize aliases. 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

    p.s. What version TiVo/software are you running?

    Another thought: Maybe it works for me because I've had telnet running and the path was set then and remains in force.
    Last edited by PortlandPaw; 04-13-2004 at 06:44 PM.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  4. #4
    Join Date
    Nov 2003
    Posts
    1,754
    Quote Originally Posted by mbriody
    Just installed this, looks good.

    One thing with the bash command line. It seems I have to type in the full path to the command I want to execute e.g. "/var/hack/bin/ls". Does it not pick up the PATH then?
    The PATH is an environmental vairable set for the shell, if you are running outside of that shell or don't use that shell to expand variables, there is no such thing as a PATH and so you must fully qualify all paths.
    Malfunct

    HDVR2 - 120hours - Extraction enabled
    SD-DVR40 - Unhacked (for now)

  5. #5
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    The latest beta version (in the first post) addresses bug reports received thus far, has more information in the ReadMe, a more informative variables section of hackman.itcl, and alt tags for the buttons in case they aren't installed or graphics are suppressed. No other substantive changes.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  6. #6
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    Thanks to mini_me from the UK, the TivoWeb shutdown puzzle has been solved.
    Last edited by PortlandPaw; 04-18-2004 at 09:04 PM.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  7. #7
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    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.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  8. #8
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    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.
    Last edited by PortlandPaw; 04-20-2004 at 07:13 AM.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  9. #9
    Join Date
    Jul 2003
    Posts
    669

    Errors:

    When I fire up a ps (no switches) it blows up:
    INTERNAL SERVER ERROR
    --cut here--
    action_shell '&cmd&title' 'set "cmd" "ps";'
    PID TTY STAT TIME COMMAND
    No processes available.
    while executing
    "exec /bin/bash -c "ps && > /dev/null 2>&1 &" "
    ("uplevel" body line 1)
    invoked from within
    "uplevel "$cmds [string range $cmd [string length $cmd0] end] $args""
    (procedure "unknown" line 4)
    invoked from within
    "$command"
    (procedure "::action_shell" line 58)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--

    I think it is just because ps alone returns an empty string. Not a problem but it might be something you want to catch in the code....

    Also when I try to edit the config from hackman it blows up:
    INTERNAL SERVER ERROR
    --cut here--
    action_confirm '' 'set "ppassword" "fixit";set "clbox" "1";set "srbox" "1";set "edit" "Edit hackman.cfg";'
    invalid command name "getvariables"
    while executing
    "getvariables"
    (procedure "action_editor" line 8)
    invoked from within
    "action_editor $chan $path $env"
    (procedure "::action_confirm" line 15)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here-
    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!

  10. #10
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    Thanks for the feedback, Tivomaster. The first problem is easy to solve. The second one has me stumped as I'm unable to replicate it. Could you give me more details, circumstances, TivoWeb version, TiVo model, software, etc.?

    UPDATE: Problem solved. It was calling a subroutine in managedailymail.itcl, where I stole the code for editing the .cfg. New beta has been posted above.
    Last edited by PortlandPaw; 04-21-2004 at 08:29 AM.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  11. #11
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    Maintenance, housekeeping and general tidying up are the hallmarks of this latest beta version, available in the first post of this thread.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  12. #12
    Join Date
    Jul 2003
    Posts
    669
    Quote Originally Posted by PortlandPaw
    Maintenance, housekeeping and general tidying up are the hallmarks of this latest beta version, available in the first post of this thread.
    New version runs like a champ.... Thanks
    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!

  13. #13
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    This latest beta version (top of 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.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  14. #14
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812

    Now edit rc.sysinit from TivoWeb

    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)
    Last edited by PortlandPaw; 04-23-2004 at 11:34 PM.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

  15. #15
    Join Date
    Jan 2004
    Location
    Chebeague Island, Maine
    Posts
    812
    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.
    David R. Hill............... TivoWeb Hack Manager
    Chebeague Island........From the land of champions:
    Casco Bay..................The Boston Red Sox
    Maine........................The New England Patriots
    58.5 gig HDR-112 since October, 2000
    240 gig, 306 hours since January, 2004 (same machine)
    120 gig DSR6000 DirecTiVo

    "There are 10 kinds of people -- those who count in binary and those who don't."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •