View Full Version : aborting scripts with control-c (split from: tivoapp patches)
DarkHelmet
01-10-2005, 07:35 AM
Watchout for doHack - if I hit ctrl-C, my tivo reboots. I just tweaked mine to ask for yes/no to confirm the change.
JJBliss
01-10-2005, 09:43 AM
Watchout for doHack - if I hit ctrl-C, my tivo reboots. I just tweaked mine to ask for yes/no to confirm the change.
Nothing to watch out for. All tcl scripts that open db handles will panic and reboot tivosh if the db is not closed.
Don't break out of tcl scripts, OR, rewrite it like you did.
DarkHelmet
01-11-2005, 03:40 AM
Of course.. it is just that the original doHack.tcl script invites you to shoot yourself in the foot by pausing and telling you: 'press enter to continue, ctrl-C to abort'. If the old value is wrong, then there is no way to abort without resetting the tivo. I mistakenly assumed that since there is no dbopen etc, that it must have been safe.
I just wanted to warn in case anybody got burned as a consequence of leaving their brain in neutral like I did.
NutKase
01-13-2005, 11:36 AM
Control - D will get you out w/out killing your tivo.
NutKase
alldeadhomiez
01-13-2005, 11:42 AM
Split from the patches thread.
Note that if your tivosh does not connect to the eventswitcher, or if you force a disconnection from the eventswitcher, ^C in tivosh will not reboot the box.
When there is no eventswitcher present, like on 7.x (and IIRC on 6.x as well), ^C is also safe.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.