From: SourceForge.net <no...@so...> - 2008-10-31 02:21:45
|
Bugs item #1686964, was opened at 2007-03-23 16:56 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113179&aid=1686964&group_id=13179 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: Out of Date Priority: 5 Private: No Submitted By: M. Saha (monasaha) Assigned to: Nobody/Anonymous (nobody) Summary: stdin is not blocking for input on solaris9 OS Initial Comment: Expect version 5.43 and 5.44.1 Tcl version 8.4.13 Host Type/OPerating System: [host05]-> uname -a SunOS host05 5.9 Generic_118558-23 sun4u sparc SUNW,Netra-CP2300 When I use Expect, and try to execute the following syntax "gets stdin" I expect that the stdin is blocking until there is input provided by the user. However, this is not the case, the behavior of stdin is non-blocking. e.g. See the example below where *Expect is NOT being used*, stdin is blocking (as expected) in this example. [host05]-> tclsh % fconfigure stdin -blocking 1 -buffering line -buffersize 4096 -encoding iso8859-1 -eofchar {} -translation auto -mode 38400,n,8,1 -xchar { } % gets stdin my input here my input here % exit [host05]-> e.g. See the example below where Expect 5.43.0 is being invoked from the Tcl Shell. [host05]-> tclsh % package require Expect 5.43.0 % fconfigure stdin -blocking 1 -buffering line -buffersize 4096 -encoding iso8859-1 -eofchar {} -translation auto -mode 38400,n,8,1 -xchar { } % gets stdin <====== SEE HERE,DOES NOT WAIT FOR INPUT % exit [host05]-> ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2008-10-31 02:21 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-10-16 13:24 Message: Deeply sorry for my previous post. Using the latest cvs (which means upgrading from 5.43 to 5.44.1.11) the problem disapear. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-10-15 14:38 Message: I believe my problem is the same. The most simple example I have is : localhost:~# (echo spawn telnet) | expect spawn telnet localhost:~# (sleep 2; echo spawn telnet) | expect localhost:~# First case, the spawn is recognised. Second case, no output from expect, he is already dead after 2 seconds. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113179&aid=1686964&group_id=13179 |