python -u under cygwin telnet

Mike avajrd at yahoo.com
Mon Nov 4 21:47:51 EST 2002


Thanks for the tip.  I'll check it out, but from looking at the link,
it appears that win32s is required, so I'll probably be in the same
situation I am now because I'm trying to get this to work in cygwin's
telnetd bash shell.

I'll let you know.

Mike

yaipa at aol.com (yaipa) wrote in message news:<8d148763.0211031251.1ed74d5 at posting.google.com>...
> I'm not doing exactly what you are, but I've had 
> great success controlling serial ports in Solaris
> and Win2K using pySerial,
> 
>  http://pyserial.sourceforge.net/
> 
> Not so long ago I posted some working code titled
> "Working (basic) Eurotherm Temp Controller" on this alias.
> 
> Good luck and keep us posted on your progress.  I need
> to do the same thing you are in the next phase of my project.
> 
> Cheers,
> 
> -Yaipa.h
> 
> 
> avajrd at yahoo.com (Mike) wrote in message news:<954ef463.0211021945.7a1b5c05 at posting.google.com>...
> > Perhaps somebody here can enlighten me on this.
> > 
> > I have a small program that interfaces with a serial port using the
> > uspp (univerisal serial port) package.  This required the win32all
> > v148 as a pre-req.  This program works as designed from cmd.exe.
> > 
> > Python version is "Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32
> > bit (Intel)] on win32"
> > 
> > I needed to have this program called from a cgi script using expect so
> > I installed the latest cygwin and configured inetd to run a service to
> > support telnetd.  When I try to run the python interpreter
> > interactively from a telnet session, I do not get any prompts.
> > 
> > When I run the program, it works, but no output is displayed until it
> > terminates.  Using the -u switch overcomes this.
> > 
> > The cygwin version of python works correctly interactively, but I
> > can't use this because uspp does not work in cygwin.
> > 
> > I do not get this behaviour from a cygwin bash shell from the machine,
> > not using telnet.
> > 
> > Does any of this make sense?  I'm not really in a "pickle" (sorry for
> > the pun), but just trying to understand why.



More information about the Python-list mailing list