I want to launch an interactive tcl script from a shell script, but when I try, it seems that the standard input channel gets messed up. For example, the following code:
error reading "file0": I/O error while executing "gets stdin"
..but the error only occurs when I launch the tcl script from a shell script. It works fine when I run it directly from bash prompt. Any ideas how to fix this?
Here is the shell script, which basically just launches two tcl scripts. The first tcl script is not interactive, so it runs fine. The second tcl script chokes when I run it from this script, but works fine when I run it from bash prompt. Thanks in advance.
Tivosh is indeed TivoShell, a customized TCL installation for Tivos. I don't have a Linux PC I can test this on, so can you copy the "test" script from my original post and try to run it from bash?...Then from a simple shell script? Thanks!!
rbautch wrote:I want to launch an interactive tcl script from a shell script, but when I try, it seems that the standard input channel gets messed up. For example, the following code:
error reading "file0": I/O error while executing "gets stdin"
..but the error only occurs when I launch the tcl script from a shell script. It works fine when I run it directly from bash prompt. Any ideas how to fix this?