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

Re: Connect to Remoteserver from perl

by Corion (Pope)
on May 12, 2011 at 09:10 UTC ( #904323=note: print w/ replies, xml ) Need Help??


in reply to Connect to Remoteserver from perl

How would you do it without Perl?

If you would do it by using ssh, there are SSH modules for automating that.

If you would do it by using a web browser, there are WWW::Mechanize modules for automating that, and modules for implementing that.

If you would do it by mail, there are modules for implementing that, too.

You don't tell us how you want to launch the script, so we can't be more specific. If you don't know what method to choose, ask your system administrator about the best choice for your network policies.


Comment on Re: Connect to Remoteserver from perl
Download Code
Re^2: Connect to Remoteserver from perl
by senthilkumarperl (Novice) on May 12, 2011 at 09:31 UTC
    Thank your for reply.We got this IP(xx.xxx.xx.xx) from x provider.Usually what we do that we run our perl script by logging into server manually.I want to connect to that server and need to run perl script by perl program.Is there any module?. could you explain ?
      Please, read again the previous reply and try to answer the questions. We cannot help you if we do not know how you usually log into the server, and we cannot know it if you do not tell us.
        Hello Senthil, I understand your question. It is better to run a perl file in a cloud server by using .net when ur connecting it with perl, you need administrator rights to both the servers and also the local machines too. It also requires the port23 in the server and the local machine also. By using SSH module u can able to connect.
        i want to do it only in perl .how to connect remote server using mstsc. after conecting remote server using mstsc .there is coming like remote desktop connection .In that i type my ip(xx.xxx.xx.xx).after initiating I am supposed to type my user name and password for that IP .after doing those thing i can access my remote server .so i want to do those things by single perl program..I hope you understand this

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-10-23 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls