From: <ab...@en...> - 2002-09-30 21:56:10
|
Roland, the installation went smoothly, but when I tried the programs, = which work ok on solaris, I've got a problem with telnet connection. The expect do not go to exp_continue.=20 The spawn of telnet was ok. after this: spawn id(4): Does `hello;\r\n' match: pattern #2: -ex `TL1 Agent Copyright'? No. pattern #3: -re `\\[\w+(\-(X|Y))?\] '? No. Closing spawn id(4). The timeout was 30 sec., but it is getting out of expect loop = ommediately. Any ideas? How would you suggest and if anybody used the Expect with the = Net::Telnet module? -----Original Message----- From: Roland Giersig [mailto:RGI...@cp...] Sent: Friday, September 27, 2002 5:38 PM To: Alexander Bourov Cc: exp...@li... Subject: Re: [Expectperl-discuss] Perl, Expect under the Win2k. ab...@en... wrote: > If anybody using Perl & Expect.pm under the Win2k, could you please = give me recommendations on: > 1. Which Perl to install : Active Perl, CygWin ..... > 2. Any specifics on Expect.pm for Win2k? Expect (more specific: IO-Tty) uses pseudo-terminals, which are only=20 available under CygWin, so that should answer the first question. Apart from that, no, there are no specifics for Win2k that I know of,=20 simply because there is only marginal reason to use Expect on Windows.=20 You see, apart from telnet (try Net::Telnet instead) there are only a=20 few command-line programs on Win2k, so what do you actually want to=20 control with Expect? Sure, Cygwin provides a lot of standard unix=20 tools, but then, why moving to Win2k in the first place? Sorry if this seems like a rant, but you are probably better off if you=20 install Linux on those PCs... Roland -- RGi...@cp... |