LinuxUser2008 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Good morning to all of you
I have a requirement, where in, i need to SSH to a target box and execute commands in the target box.. Now, this has to be implemented as a web-application(a small three page one).. So, i need to enter the username/password to login to the box in one page, and on submit, the user needs to enter the command to be executed.. once the second page is submitted, the output of the command has to be shown in the third and final page..
Now this has to be done in Telnet too.. :) My question is, what can i use in Perl to implement this requirement..
I had tried implementing this by Expect, but that did not go so well.. What else can i use??
Regards,
Blub:)