Way to rexpect on windows

Hi List,
I am using ruby mostly for running my watir (Web automation
tool written in ruby) scripts. However in this process I need
to login to unix box and carry out some task before proceding
with my test.

I could find rexpect module but it seems that works only on
*nix and not on windows.

I am not sure whether rexpect can work on windows. Can somebody
confirm? If rexpect is not the way, what would be solution
for login on to unix box and run some scripts there?

I also tried using cygwin on windows, but I am not sure how can
I run my watir scripts on cygwin along with rexpect?

Is this possible?
Any help in this regard will be appreciated.
Thanks and Regards,

I’m pretty sure there’s a “native” port of “expect” to Windows, if that
helps. Are you running “ActiveState” Tck/Tk or some other version?

Does “rexpect” run under CygWin? I’ve never tried it, but I’m pretty
sure the CygWin Tcl/Tk/expect works fine on Windows. And if you (or
someone else) figures out how to start up Internet Explorer (or for that
matter, Excel) from CygWin, I’d like to know – it would be quite

Manish S. wrote:

confirm? If rexpect is not the way, what would be solution

M. Edward (Ed) Borasky


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs