Re: How Can I use ssh in my perl code




I suggest not using net::ssh. It is slower than molasses.

System calls? Not very secure... but it would work...

I would say perl is probably the wrong tool for this job. But that's just my opinion.

-Matt

On May 19, 2008, at 9:12 AM, <mohammed.mustafa@xxxxxxxxx> wrote:

Hi Dear Friends,

I want to connect to remote m/c through ssh to do the testing
at remote m/c, which we can do with ssh ( but I have not done).
And my question is, How can we interface the ssh to our perl script so
that our perl will take care of all things, like
1) connecting to remote m/c once we execute the perl script through ssh.
2) How to run the application at remote side.

And if you have code example, please send me across.

Hope I am clear here, if not please tell me.

Regards,
Mustafa


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure.

If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@xxxxxxxxxxxxx and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

.



Relevant Pages

  • Re: How Can I use ssh in my perl code
    ... at remote m/c, which we can do with ssh. ... connecting to remote m/c once we execute the perl script through ssh. ... The information contained in this electronic message and any attachments to ...
    (perl.dbi.users)
  • Re: How Can I use ssh in my perl code
    ... I want to connect to remote m/c through ssh to do the testing ... at remote m/c, which we can do with ssh. ... attachments to this message are intended for the exclusive use of the ... Computer viruses can be transmitted via email. ...
    (perl.dbi.users)
  • RE: How Can I use ssh in my perl code
    ... I want to connect to remote m/c through ssh to do the testing ... at remote m/c, which we can do with ssh. ... attachments to this message are intended for the exclusive use of the ... Computer viruses can be transmitted via email. ...
    (perl.dbi.users)
  • Re: Command-line/batch tools for handling mail attachments?
    ... I already use formail for various tasks related to extracting messages ... The script is being written in Perl anyway, ... > On Thu, 12 Jan 2006, Jim Holland wrote: ... >>> files the same messages but with all the attachments, HTML parts, ...
    (Debian-User)
  • Re: Question on input password on ssh prompt
    ... I am writing a perl script running on the XP, ... However right after I made the system call for ssh, ... Is that a way I can feed it the password without install any ...
    (comp.lang.perl.misc)