Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: IO::Pty, Net::Telnet and SSH

by fmerges (Chaplain)
on Nov 04, 2006 at 13:44 UTC ( [id://582261]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^4: IO::Pty, Net::Telnet and SSH
in thread IO::Pty, Net::Telnet and SSH [SOLVED]

Hi,

Don't know if this will work for you, but I know people who solved this kind of issue writting small servers that provide system commands with RPC capabilities, using SOAP or XML-RPC for example.

I mean first try with what you are doing, if it works okay, but otherwise think about this:

Caller.pl <----XMLRPC/SOAP-----> Bridge.pl / | / System/Native Program <-----> Expect

This way you can easily provide remote calls to existing programs that uses the STDIN without changing anything.

Regards,

fmerges at irc.freenode.net

Replies are listed 'Best First'.
Re^6: IO::Pty, Net::Telnet and SSH
by gonza (Novice) on Nov 04, 2006 at 14:45 UTC

    Hi,

    While it is a good suggestion, it would be practically *impossible* to have this sort of thing approved in the company I work for. The idea is not to have to install a new daemon on each of the servers I manage, I'd like to work with what's already there (ie. SSH/Telnet).

    Besides, not all servers have expect.

    I'd love to have a look at the ssh_config of the person who got this Net::Telnet example working (was that you?). I can't think of what else it might be. Also, the OpenSSH version might be useful too, just incase it's a version thing.

    Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582261]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.