way to rexpect on windows

M

Manish Sapariya

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
 
M

M. Edward (Ed) Borasky

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

Donkey Agony

M. Edward (Ed) Borasky said:
Does "rexpect" run under CygWin? I've never tried it, but I'm pretty
sure the CygWin Tcl/Tk/expect works fine on Windows.

Don't know about `rexpect`, but Cygwin `expect` does.
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.

Put this function in your .bashrc

ie() {
/cygdrive/c/progra~1/intern~1/iexplore.exe $* &
}

then you can can do stuff like

$ ie google.com

at the prompt.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top