Solved

perl push file to another server

Posted on 2015-01-09
6
211 Views
Last Modified: 2015-01-09
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,
0
Comment
Question by:shragi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 28

Expert Comment

by:FishMonger
ID: 40540522
What methods of connection do you have available?

The first obvious method would be to use FTP.
Net::FTP
0
 
LVL 26

Expert Comment

by:wilcoxon
ID: 40540562
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
 

Author Comment

by:shragi
ID: 40540578
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Expert Comment

by:wilcoxon
ID: 40540596
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
 
LVL 28

Accepted Solution

by:
FishMonger earned 500 total points
ID: 40540609
Another option would be to use rsync.
The rsync Tool In Windows
0
 
LVL 26

Expert Comment

by:wilcoxon
ID: 40540634
Thanks.  I knew there was another similar option to rdist starting with r - just couldn't remember what it was...
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb entity bean example 2 54
Run AutoHotkey script directly from Notepad++ 5 218
IntelliJ and Eclipse Neon 2 installations 4 63
$_GET call between URL 3 65
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question