perl push file to another server

I have file in server A and want to push that file over to server B.
How can I move the file to server B from server A using perl.
those are windows servers.

Thanks,
shragiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
FishMongerConnect With a Mentor Commented:
Another option would be to use rsync.
The rsync Tool In Windows
0
 
FishMongerCommented:
What methods of connection do you have available?

The first obvious method would be to use FTP.
Net::FTP
0
 
wilcoxonCommented:
There are MANY possible ways to do this.  We need more information.  Is server B running ftpd or any other file transfer daemon?  Is there a drive mapped from one server to the other?  Are there NFS mounted drives?  Is rdist (or one of the Windows alternatives) available?
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
shragiAuthor Commented:
nope there is no ftpd, no NFS
 yes i can FTP that server.
there is no drive mapped but I want to avoid that and that is the reason I am transferring the file
or else i would have shared a folder and mapped it as drive in server B.
0
 
wilcoxonCommented:
If you can ftp then server B is running ftpd (likely listed as something like FTP Server under Services).

If you don't have NFS or mapped drives then ftp is the simplest method.  Alternately, if sftp is available, then scp may be even simpler (and more secure) than ftp.

Even the same files will be modified and copied or some other similar situation then you should really look into rdist or similar (a quick Google shows rdist for Windows appears to be an alpha on github but that Chef and CfEngine supposedly do the same thing).
0
 
wilcoxonCommented:
Thanks.  I knew there was another similar option to rdist starting with r - just couldn't remember what it was...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.