Em Thu, 15 May 2008 08:03:40 -0700, p.wallstedt escreveu: > Hi all! > > I have a small but rather annoying problem with pyserial. I want to open > a file on disk for reading and then open a com-port, write lines from > the file to the port and then read something back and compare it to the > next line in the file. Should be simple. And it is, apart from the fact > that the file seems to be doubled ...? Or it loops through the file > twice. > > If I exclude the "import serial" it works. > > Any ideas? > > thanks > Peter
Are you sure you need to reinvent the wheel ? For example, pppd has the "chat" application: http://www.hmug.org/man/8/chat.php -- http://mail.python.org/mailman/listinfo/python-list