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 24, 2004 #41 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thank you, David! It's certainly nice to get positive feedback. I appreciate it.
    Dave
     
  2. Apr 26, 2004 #42 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    The comment was made that the bash command line could be made more "user friendly," so I changed it so that it will accept multiple lines of commands, such as:
    cd /var/hack/etc
    cat crontab
    If a command's path is included in one of the startup PATH statements, it will run. However, it still doesn't remember aliases, even if .profile is run as a part of the group of commands. Hmmm.

    I changed the password process so it only has to be entered once per visit to the editing screen.

    The comment was also made that more applications could be added. What would those be? Any ideas?

    I'd like to wrap up the beta phase and move on, so any and all comments and criticisms are welcome.

    (Note: No changes were made to the hackman.cfg.file)
     
  3. Apr 27, 2004 #43 of 1645
    David Platt

    David Platt !Texas TCF Club

    10,511
    47
    Dec 13, 2001
    Portland, OR
    One I wouldn't mind seeing is a command to run moviesort.tcl. Don't know how much of a demand there would be for that, though, or how many people are even using it.
     
  4. Apr 27, 2004 #44 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    I've got moviesort.tcl running as a cron job. Would people want to have the ability to run it manually? I guess they might, but I don't see the point.
     
  5. Apr 27, 2004 #45 of 1645
    David Platt

    David Platt !Texas TCF Club

    10,511
    47
    Dec 13, 2001
    Portland, OR
    Maybe it's just cause I've never bothered to set cron up on my machine. ;)

    Maybe that will be my project for this weekend. It's something I've been meaning to do for a long time, but it intimidates me for some reason.
     
  6. Apr 27, 2004 #46 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    For what it's worth, here's my crontab file, edited down to essentials:

    # /var/hack/etc/crontab: system-wide crontab
    SHELL=/bin/sh
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/var/hack/bin
    MFS_DEVICE=/dev/hda10
    TIVO_ROOT=""

    # Five after three a.m.(EST) or four a.m. (DST), every day, push backup of /etc onto PC
    5 8 * * * rsync -PavzH --numeric-ids --delete --exclude=displayfiles --exclude=apsrunning.sh /etc/. 192.168.1.10::tivo/etc/. > /var/hack/log/rsync 2>&1

    # Ten after three a.m.(EST) or four a.m. (DST), every day, push backup of /var/hack onto PC
    10 8 * * * rsync -PavzH --numeric-ids --delete --exclude=displayfiles --exclude=apsrunning.sh /var/hack/. 192.168.1.10::tivo/var/hack/. > /var/hack/log/rsync 2>&1

    # Fifteen after three a.m.(EST) or four a.m. (DST), Maine time, every night, update moviesearch
    15 8 * * * /var/hack/bin/moviesort.tcl > /var/hack/log/moviesort 2>&1

    # Fifteen after eight a.m., Maine time, every weekday, push dailymail

    # EST:
    # 15 13 * * 1-5 /tvbin/tivosh /var/hack/dailymail/dailymail_jazz.tcl > /var/hack/log/dailymail_jazz 2>&1

    # DST:
    15 12 * * 1-5 /tvbin/tivosh /var/hack/dailymail/dailymail_jazz.tcl > /var/hack/log/dailymail_jazz 2>&1

    I forgot to mention that you can get cron from here. There are complete directions included and it really isn't all that hard to install. Once its running, it works pretty dependably.
     
  7. Apr 28, 2004 #47 of 1645
    David Platt

    David Platt !Texas TCF Club

    10,511
    47
    Dec 13, 2001
    Portland, OR
    Thanks for the link. I don't want to get this thread too far off track, so I'll just ask one question about it and if I need any more help I'll start a new thread: do you know if this version works on a Series 2 TiVo?
     
  8. Apr 28, 2004 #48 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    No, I'm sorry, I don't know. But I bet it does. Others? This is Vixie Cron V3.0.
     
  9. Apr 30, 2004 #49 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    The latest version is a housekeeping update with nothing really new. I hope this is a "disaster check" before going out of beta. Please let me know if there are any problems with it.
     
  10. Apr 30, 2004 #50 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    What's the difference between hackman.itcl & hackmanG.itcl, which are both in the zip?
     
  11. Apr 30, 2004 #51 of 1645
    stark

    stark Member TCF Club

    786
    2
    Dec 31, 2003
    Eden...
    I'd love it if Hackman included <a href="http://www.tivocommunity.com/tivo-vb/showthread.php?s=&threadid=153732&highlight=autospace">autospace</a>.

    It's a great little utility, but it has a problem with spontaneously aborting. Being able to easily restart it when that happens would be great.
     
  12. May 1, 2004 #52 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    You must have other problems stark becuase I've been running it for a few months now and it's not stopped on me yet :)
     
  13. May 1, 2004 #53 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    I'll work on adding autospace.

    As for aborting, I'm with Fozzie, I haven't seen anything remotely related to such a problem in two months of development. Can you provide details?

    As for hackmanG.itcl -- oops -- that's my development code for the last "good" version so I can regress if I have to. Shouldn't have been in the package. Please delete and ignore.
     
  14. May 1, 2004 #54 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Could you please tell me where the lastest and best version of autospace can be downloaded? I don't want to work with an outdated version.

    Thanks!
     
  15. May 1, 2004 #55 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
  16. May 1, 2004 #56 of 1645
    arthur

    arthur Member

    12
    0
    Sep 6, 2001
    Excellent tool PortlandPaw
    Can I customize how Hackman launches some of the apps where one doesn't specify the app path + arguments.

    For example:
    I only have control to specify the path to tserver
    Code:
    set tytoolpath "/var/hack/tserver"
    
    and then when hackman launches the app, it would launch with the following command (which I have no control over)
    Code:
    /var/hack/tserver/tserver_mfs7 -s /var/hack/tserver/NowShowing.tcl
    
    I would like to launch it as such
    Code:
    /var/hack/tserver/tserver_mfs7 -s [b]tivosh[/b] /var/hack/tserver/NowShowing.tcl
    
    otherwise it wouldn't work for me.
     
  17. May 1, 2004 #57 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thank you, arthur. The latest beta version (first post in thread) does the following:
    -- Adds autospace as an option (will display only if autospace is installed)
    -- Simplifies the process for adding new apps, directions included (inspired by autospace!)
    -- Moved startup paths to hackman.cfg per arthur's concern. Now easily editable.
    As a result of these changes, updaters should copy both hackman.itcl and hackman.cfg.

    As always, please inform me of any problems with hackman and I'm open to suggestions for improvement and/or new apps to include.
     
  18. May 1, 2004 #58 of 1645
    arthur

    arthur Member

    12
    0
    Sep 6, 2001
    Awesome,
    what a support,
    I just posted the request, and now I have a fully functional version.

    Thank you thank you thank you.
     
  19. May 1, 2004 #59 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    I thought 45 minutes was a reasonable response time. Sorry it took so long! (just kidding) Thanks for the good words!
     
  20. May 2, 2004 #60 of 1645
    stark

    stark Member TCF Club

    786
    2
    Dec 31, 2003
    Eden...
    Thanks Portland Paw! The turn-around of your response was incredible.

    As to autospace (I'll repost this in the autospace thread when I'm done):

    I've got two theories about what is the problem is. One is that the Tivo is spontaneously rebooting. I'll be checking my dailymail to see if that is happening.

    The other is that autospace is aborting based on some internal error. The problem is that the autospace log only exists while autospace is running. Autospace ends, the log is deleted. I've got a telnet session open doing a tail of the log. If this is the problem, I hope to see an error in the telnet session even if the log is gone.
     

Share This Page