Grant Edwards <[email protected]> wrote:
> On 2009-04-12, JanC <[email protected]> wrote:
> > Grant Edwards wrote:
> >
> >> On 2009-04-10, Stuart Davenport <[email protected]> wrote:
> >>
> >>> I am trying to work out if its possible, to create a virtual serial
> >>> port with Python?
> >>
> >> On Linux: no.
> >
> > I wonder if there is no way to emulate ptys from userspace?
>
> Didn't I just answer that question?
>
> On Linux: no.
Actually you could do it with an LD_PRELOAD library
Intercept open("/dev/ttyS0",...). You'd need to intercept ioctl(),
read(), write(), close() etc too.
Messy but possible.
--
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list