lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Aug 17, 2010 at 10:12 AM, Gunnar Zötl <gz@tset.de> wrote:
> this message is to announce lpty. lpty is a module that allows a program written in lua to control another program using a pty. Unlike pipes this allows to control even programs asking for passwords (like for example ssh) and catch output that is not terminated by a line feed.

That looks cool - lexpect does something similar (part of the luagdb
package) but in a fairly crude way:

http://lua-users.org/lists/lua-l/2008-03/msg00554.html

(It can handle Windows processes as well, although automating programs
like ftp remains an exercise in frustration because it uses direct
console input for passwords - pexpect has the same problem)

steve d.