On Fri, Aug 27, 2010 at 8:18 AM, Michaelian Ennis men...@corvus.net wrote:
I've noticed some behaviors I can't explain with python and plan9. I
am using contrib/installed bichued/python. Trying to read from a
serial port I would suspect I would have to use f.read() if I want to
be able to
On Thu, Aug 26, 2010 at 10:04 PM, Federico G. Benavento
benave...@gmail.com wrote:
what about dd -bs 1 -if /dev/eai0 ?
This (while ridiculously slow) works correctly.
as for new lines there's also a rU mode...
both
f = open(/dev/eia1,rU)
and
f = open(/dev/eia1,rU,0)
exhibit the same
I've noticed some behaviors I can't explain with python and plan9. I
am using contrib/installed bichued/python. Trying to read from a
serial port I would suspect I would have to use f.read() if I want to
be able to catch a specific string where there is no newline.
For instance:
When my
import sys
f = open(/dev/eia0,r)
while (True):
sys.stdout.write(f.read(1))
Yet this only yields:
Type help or '?' for a list of available commands.
have you tried redirecting the output of this to
a file, then using xd / wc to make sure that funny characters
aren't causing ... funny
ok, con(1) does more than just dial, read and write,
it might also do rlogin...
does a C version of your script behave as expected?
what about dd -bs 1 -if /dev/eai0 ?
as for new lines there's also a rU mode...
On Thu, Aug 26, 2010 at 9:18 PM, Michaelian Ennis men...@corvus.net wrote:
I've