Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Expect.pm problem

by Anonymous Monk
on Nov 25, 2004 at 18:28 UTC ( #410444=note: print w/replies, xml ) Need Help??


in reply to Re: Expect.pm problem
in thread Expect.pm problem

I don't have quotes around my -re and it works. It looks like your first instance of -re works, too. It does not have quotes.
I suspect that if you remove the quotes on the last one it would work. In any case, I don't think you would be hanging on your last "send" command. I think it is the quoted -re line above it. Good luck.

Replies are listed 'Best First'.
Re^3: Expect.pm problem
by rhymejerky (Beadle) on Nov 29, 2004 at 18:36 UTC
    I have taken out all the quote in the -re, but the problem persisted. I know expect.pm works if I execute commands,(ie., ls, cat etc) when the prompt shows up at the end of the command execution. When I run other command (Oracle calendar command to be exact), it does not get back to the prompt. Instead, it shows a line that asks me for password. I have a feeling that expect is not looking at the right place. Any other suggestion is greatly appreciated. Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://410444]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-07-21 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (449 votes). Check out past polls.

    Notices?