TiVo Community Forum banner
21 - 40 of 556 Posts

·
Woodstock-era Hacker
Joined
·
1,057 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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #41 ·
Originally posted by David Platt
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.
Thank you, David! It's certainly nice to get positive feedback. I appreciate it.
Dave
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #42 ·
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)
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #44 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #46 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #48 ·
Originally posted by David Platt
Do you know if this version works on a Series 2 TiVo?
No, I'm sorry, I don't know. But I bet it does. Others? This is Vixie Cron V3.0.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #49 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #53 ·
Originally posted by stark
I'd love it if Hackman included autospace.

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.
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #54 ·
Originally posted by stark
I'd love it if Hackman included autospace .
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!
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #57 ·
Originally posted by arthur
Excellent tool PortlandPaw
Can I customize how Hackman launches some of the apps where one doesn't specify the app path + arguments.
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #59 ·
I thought 45 minutes was a reasonable response time. Sorry it took so long! (just kidding) Thanks for the good words!
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #61 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #62 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #66 ·
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?
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #68 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #70 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #73 ·
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?
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #75 ·
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)
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #78 ·
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.
 
21 - 40 of 556 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top