Problem with open()
ckrohn at my-deja.com
ckrohn at my-deja.com
Tue Dec 28 15:15:51 EST 1999
I'm just starting out with Python and I'm having a strange problem.
I'm trying to open a modem device so that I can talk to it, but the
following line just seems to hang:
modem = open('/dev/ttyS1', 'w+')
print "Modem opened!"
I never get to the modem opened line. Now I know the modem works
because I can use minicom, diald, etc and they work fine. The open
function also seems to work fine if I point it to a port that doesn't
actually have a modem on it ('/dev/ttyS0' for example).
Can anyone tell me what I'm doing wrong?
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list