View Full Version : how sc.tcl works?
wiz561
09-17-2004, 01:01 AM
Hi!
I need some help running the file. When I execute it, here's what happens...
tivo:/var/hack$ ./sc.tcl
bash: ./sc.tcl: No such file or directory
Just for kicks and because I don't know what I'm doing, I tried this too...
tivo:/var/hack$ bash ./sc.tcl
: command not found
: No such file or directorylib.tcl
: command not found
: command not found
./sc.tcl: try: command not found
: command not found
./sc.tcl: RetryTransaction: command not found
: command not found
./sc.tcl: line 76: syntax error near unexpected token `catch'
'/sc.tcl: line 76: `} catch errCode {
tivo:/var/hack$
----------------------------
I chmod'ed the file a+x first, and then just tried +x but nothing worked.
Do I have to add it to a cron job? Am I missing something?
Also, another odd problem is that it seems like whenever I hit enter, it adds another enter. For example, I do a ls, here's wha thappens...
tivo:/var/hack$ ls
log mfs_ftp sc.tcl
tivo:/var/hack$
tivo:/var/hack$
As you can see, it prints the dir out twice, even though I didn't hit enter twice.
If anybody can help, I would greatly appreciate!
Thanks!
mrblack51
09-17-2004, 03:28 AM
tivosh sc.tcl
tcl scripts arent bash scripts, they are tcl/tk scripts. specifically, tcl scripts on the tivo are used as a script into the tivosh interface.
lenroc
09-17-2004, 03:52 AM
The way to tell (other than just remembering that .tcl is for tivosh) is to look at the first line of the script*. You should see:
#![what to execute this with]
So, in your case, the first line would be:#!/tvbin/tivosh
For a bash script, its #!/bin/bash
* - For an easy way to look at the first line of a script, try head -n1 /path/to/script
head, by default, shows the first 10 lines of a file. "-n1" tells it to show only the first 1 line.
psxboy
09-17-2004, 11:35 AM
Also, another odd problem is that it seems like whenever I hit enter, it adds another enter.
If you're using Putty as your telnet client, here's the fix (http://www.dealdatabase.com/forum/showthread.php?p=182316).
-psxboy
wiz561
09-17-2004, 12:57 PM
Thanks for the info!
However, how does run one a script like this? Would you add it to the modules section of the tivo web interface? Where would you place the file?
Thanks!
lenroc
09-17-2004, 03:30 PM
no script involved in the putty fix. Here's a better version of the link:
http://www.dealdatabase.com/forum/showthread.php?p=182316#post182316
wiz561
09-17-2004, 08:15 PM
Actually, the original script was to enable the showcase (starz on demand) on the tivo. I'd like to get this again (i'm a starz subscriber) and after the monte, the drive doesn't get this anymore.
The script is suppose to enable this again. If you don't use the script, you have to dial out and when you dial out, it may download the bios and flash it on the hd. Don't want to un-monte my monte. ;-)
If anybody has any ideas on how to execute, that would be great!
lenroc
09-18-2004, 03:23 AM
Are we reading the same thread?
That was answered by MrBlack in the second post here. Less than 3 hours after you asked. The rest was just to help you know a bit more about the how and why, and then to solve your other problem too.
Not searching I can almost understand, but not even reading the damn thread you started? Sheesh...
wiz561
09-18-2004, 10:32 AM
Lenroc,
Let's take a look at mr black's post...
----
tivosh sc.tcl
tcl scripts arent bash scripts, they are tcl/tk scripts. specifically, tcl scripts on the tivo are used as a script into the tivosh interface.
----
OK, I know what a tcl script is now. Where do you see how to run this, which is what I asked again. If you look at the other post by you, I now know how to identify what kind of script it is (tivosh/bash). Let's start with
"you telnet into the tivo and..."
wiz561
09-18-2004, 10:44 AM
btw, i fixed it...
for other people that were stuck on here, this is what you would do...
- telnet into the tivo box
- run...
tivo:/var/hack$ /tvbin/tivosh sc.tcl
-results
done!
tivo:/var/hack$
Thank You
lenroc
09-18-2004, 03:29 PM
tivosh sc.tcl
tcl scripts arent bash scripts, they are tcl/tk scripts. specifically, tcl scripts on the tivo are used as a script into the tivosh interface.
OK, I know what a tcl script is now. Where do you see how to run this
On the first line of mrblack's post. What did you think "tivosh sc.tcl" meant?
BTW- If you use the "Quote" button, you can cut down on a lot of confusion and ambiguity. For example, I assumed that your 2nd post in this thread was asking about how to run the script the PSXBoy was pointing you to. (Which I thought was odd, since psxboy wasn't pointing you to a script, which explains my second post in this thread.)
At least part of the reason I assumed that was because your response was just after psxboy's, so without a "quote", it would follow that you would be responding to the post just before yours. Of course, the larger part of the reason I assumed you weren't still asking about sc.tcl is because that had already been answered.
wiz561
09-18-2004, 10:59 PM
woops... i thought it meant the language it was written in, not how you ran it... :o
thanks mr. black...
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.