Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a script from another script

Status
Not open for further replies.

rbautch

Technical User
Sep 16, 2005
8
US
I want to launch an interactive tcl script from within a bash script, but when I try, it seems that the standard input channel gets messed up. For example, the following code:

puts -nonewline stdout "What is your name?: "
flush stdout
set name [gets stdin]

returns the following error:

error reading "file0": I/O error while executing "gets stdin"

but only when I launch the tcl script from a bash script. It works fine when I run it directly from bash prompt. Any ideas how to fix this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top