From: Larry W. V. <lv...@ca...> - 2003-09-11 15:15:00
|
From: Kevan Hashemi <ha...@br...> > I can't get a script to stop and read >input from stdin. I tried > >puts -nonewline "Enter something: " >set foo [gets stdin] Do you see the string "Enter something" ? There is one reason I can think of that this would fail. If your program is being executed from a crontab or in some other way has had the controlling terminal disconnected from the process, then the gets would return an empty string and would continue. -- Tcl - The glue of a new generation. <URL: http://wiki.tcl.tk/ > Larry W. Virden <mailto:lv...@ca...> <URL: http://www.purl.org/NET/lvirden/> Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -><- |