PDA

View Full Version : exec in TCL script


dopester
10-06-2001, 11:04 PM
I have been trying to modify the current httpd.tcl script to extractvideo (it looks like the code in there sort of does it), but I was looking for something that automaticly names the file, splits large shows into multiple chunks for people who have to deal with 2gb file limit etc.

I have been able to do everything except two things:

1. Main problem - Whenever I use the exec command the tivo resets. I dont want to keep screwing with exec because im afraid im going to corrupt the tivo over time if it keeps reseting. Does anyone know why this is happening? For example I tried the following.


exec "echo "{Running}" > /var/tmp/extracting"


This made the tivo reset.

2. The second problem really shows my lack of tcl experience, but I am trying to check for the existance of a file so that if you are already extracting you will not end up running more than one extraction. Does anyone have a small snippet of code for this?

When I complete this I will of course hand it out to everyone to use, and enjoy.

Also can anyone paste their command line for mounting a samba share. Whenever I try to mount samba shares from my win2k machine it prompts for password, and sits there for about 5 minutes and then says there is an error. Nothing descriptive. Im not sure if its a permission issue on my win2k machine, or something in smbmount.

http://www.digitalregime.com/tivo2svcd/