# Way to rexpect on windows

**URL:** <https://www.ruby-forum.com/t/way-to-rexpect-on-windows/99363>\
**Category:** Ruby\
**Created:** [January 31, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/way-to-rexpect-on-windows/99363 "2006-01-31T13:41:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mshah](https://www.ruby-forum.com/u/mshah)\
**Post date:** [January 31, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/way-to-rexpect-on-windows/99363/1 "2006-01-31T13:41:48Z")

</div>

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,  
Manish

---

<div class="post-metadata">

**Author:** ![mshah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mshah](https://www.ruby-forum.com/u/mshah)\
**Post date:** [February 1, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/way-to-rexpect-on-windows/99363/2 "2006-02-01T16:08:24Z")

</div>

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  
useful.

Manish S. wrote:

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

–  
M. Edward (Ed) Borasky

> **[世界杯竞猜彩票-世界杯官网竞猜（集团）有限公司](http://www.linuxcapacityplanning.com/)**
>
> 世界杯竞猜彩票一直以来遵守商业道德，世界杯官网竞猜坚持诚信为本，保证诚实经营。世界杯竞猜彩票先后成为安徽省电子商务协会理事单位、安徽省网商协会会员单位、合肥市电子商务协会理事单位、合肥市服务外包行业协会会员单位、安徽省云计算产业促进会会员单位。世界杯官网竞猜一直保持良好的技术及服务态度，更好地为客户服务。
