Hi,
Is there any command in pike to make the same that expect does in TCL (i.e. http://en.wikipedia.org/wiki/Expect)
Unfortunately not. Whoever fixes one gets cake from me.
(I keep reimplementing an incomplete Expect every time I need that functionality.)
can you share your incomplete implementation so that someone can complete it?
greetings, martin.
No. The most complete one is looked up somewhere in Linköping Universitys password management system*. That also delt with the setsid magic needed for yppasswd, passwd and friends. But it lacked a sane API so I never got around to extract it and contribute it to Pike proper before ending my employment there.
After that I've just written a custome state machine every time a problem suitable for Expect has come up.
Thus: Cake to whoever stops me from wring yet another state machine the next time.
* Well, more probably/hopefully it has long since been replaced.
In the last episode (Nov 22), Peter Bortas @ Pike developers forum said:
No. The most complete one is looked up somewhere in Linköping Universitys password management system*. That also delt with the setsid magic needed for yppasswd, passwd and friends. But it lacked a sane API so I never got around to extract it and contribute it to Pike proper before ending my employment there.
Good thing there's System.PAM from monger nowadays; that's what I used for a web-based password reset interface.
pike-devel@lists.lysator.liu.se