expect module and/or functionality? Or SSH wrapper module?
Michael Hudson
mwh at python.net
Wed Jul 10 06:46:42 EDT 2002
claird at starbase.neosoft.com (Cameron Laird) writes:
> If not, no, you can't Expect with pure Python; there's no
> practical way to get the pseudoterminal munging right without
> calls into the C run-time library that Python itself can't
> access.
Huh? You have openpty, forkpty, ioctl, setsid, setpgrp, ... what more
do you need?
> I'm working on techniques to use standard distribution instal-
> lations of (Tcl-based) Expect and (pure) Python to achieve
> general results. The idea is that many hosts--essentially
> all Linuxes, for example--are already equipped with these
> executables, so all you'd need to install are your pure-Python
> scripts. I don't have these ready yet, though.
Not to say that this isn't a worthy goal...
Cheers,
M.
--
In many ways, it's a dull language, borrowing solid old concepts
from many other languages & styles: boring syntax, unsurprising
semantics, few automatic coercions, etc etc. But that's one of
the things I like about it. -- Tim Peters, 16 Sep 93
More information about the Python-list
mailing list