Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Passing client information between multiple sockets...

by babel17 (Acolyte)
on May 14, 2004 at 19:04 UTC ( #353457=note: print w/ replies, xml ) Need Help??


in reply to Passing client information between multiple sockets...

This comes up all the time on the expect.pm list. Since you have AIX, put SSH on the database box, then use the expect.pm perl module to spawn an slogin to it from the linux box. Expect.pm can then handle all of the output and response stuff pretty easily. The reason I say use ssh instead of telnet is that automating telnet requires that you save an unecrypted password somewhere. This is a bad idea.


Comment on Re: Passing client information between multiple sockets...
Re: Re: Passing client information between multiple sockets...
by Plankton (Priest) on May 14, 2004 at 23:47 UTC
    Are you suggestion that he have Expect enter the password to ssh/slogin? Were does Expect store the password? Does it store it encrypted manner? The only thing I can think of would be to use ssh Public Key Authenication and avoid having to enter a password all together thus removing the need for Expect.

    Plankton: 1% Evil, 99% Hot Gas.
      I think Expect will be used for more than just automating the login; it'll also interact with the db shell.
        I don't disagree with you there, but a even a shell script can interact with the db shell. Example ...
        #/bin/sh ssh user@db_server sqlplus /nolog <<EOT connect user passwd select * from whatever where something = $1; EOT
        Also how is Expect going to proctect the login password?

        Plankton: 1% Evil, 99% Hot Gas.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://353457]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-08-30 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls