Antwort: RE: Antwort: FTPing of files between remote servers.

From: Manfred Beilfuss (Manfred.Beilfuss_at_dvag.com)
Date: 07/20/04


To: Anand.V@gxs.com
Date: Tue, 20 Jul 2004 16:31:05 +0200

Hi Anand,

I don't have enough perl practise to tell how to do it in perl.

But speaking in general terms you will have to copy your ftp-script by any
means available to one of the server
and execute it there.

If it is a perl script you need perl on the server.

You will have to log into the server using e.g. telnet to start the script.
Alternatively if available to you might use remote-shell (rsh) .

On CPAN you find net::telnet and net::rsh to automate what you need with
perl if you like.

I haven't used either of them, but they seem to work similar to net::ftp !

Mit freundlichen Gruessen / Best regards

Manfred Beilfuss

                                                                                                                 
                    Anand.V@gxs.c
                    om An: Manfred.Beilfuss@dvag.com, Anand.V@gxs.com
                                         Kopie: beginners@perl.org
                    20.07.2004 Thema: RE: Antwort: FTPing of files between remote servers.
                    15:50
                                                                                                                 
                                                                                                                 

Hi Manfred Beilfuss,

Thanks for the reply. Could you elaborate on running your perl-script or
any other ftp-script remote script .

Thanks & Best Regards,

Anand

-----Original Message-----
From: Manfred.Beilfuss@dvag.com [mailto:Manfred.Beilfuss@dvag.com]
Sent: Tuesday, July 20, 2004 7:08 PM
To: Anand.V@gxs.com
Cc: beginners@perl.org
Subject: Antwort: FTPing of files between remote servers.

Hi Anand,

I fear that you will have to run our perl-script or any other ftp-script
remote on one of your servers, if you are bound to the ftp-protocol.
The only alternative is to copy it first to your desktop and then to the
second server.
Sorry but ftp is a protocol between two points.

Mit freundlichen Gruessen / Best regards

Manfred Beilfuss

                    Anand.V@gxs.c

                    om An: beginners@perl.org

                                         Kopie:

                    20.07.2004 Thema: FTPing of files between
remote servers.
                    15:09

Hi All,

I am using following code to transfer a file from remote host to local
system.

sub transferEJSFiles{

           $ftp = Net::FTP->new($sourceServer, Timeout => 30) or die "Can't

contact $sourceServer: $!";

           $ftp->login($sourceUser,$sourcePassword) or die "Can't login
($sourceUser):", $ftp->message;

$ftp->cwd("/home/clients/pvcs/adk/Installables/$ejsVersion/ejs/solaris/")
or
die "Cannot change working directory ", $ftp->message;

           $ftp->binary() or die "Cannot Convert to Binary Mode ",
$ftp->message;

           $ftp->get
("setup","$ejsTargetRoot/$ejsVersion/ejs/solaris/setup") or
die "get failed for setup", $ftp->message;

           $ftp->cdup() or die "Can't moveup to parent directory : ",
$ftp->message;

$ftp->get("archive.dat","$ejsTargetRoot/$ejsVersion/ejs/archive.dat") or
die
"get failed for archive", $ftp->message;

           $ftp->quit;
}

Could some suggest how can i transfer a file from one remote host to
another
remote host using FTP module. Is there any way of doing this . Please guide

me

Regards
Anand



Relevant Pages

  • Re: Get Clients Windows Logon ID
    ... then they able to access my perl program. ... list of authorized windows user name is store in database, ... What you need to know is the identity of the remote user who made that request. ... If you have authorization configured on your server the value you need is in ...
    (perl.beginners)
  • Re: How to get TS mode Info from Registry
    ... Arvind ... > Note that this key will let you see what mode the server is in. ... >> Application Server and 2) Remote Admin. ... >> Regards, ...
    (microsoft.public.windows.terminal_services)
  • Re: Remote desktop sharing
    ... The intention was to get desktop to ... but I can even get to the server on my own system. ... Regards ... > to allow TS in Remote Admin mode in SBS2000. ...
    (microsoft.public.backoffice.smallbiz2000)
  • Automating a backup job?
    ... I have SQL Server 2000 locally and remotely - I need to setup a nightly job ... to copy the entire database from the remote server to the ... anyone suggest a way forward with regards to the automated nightly "import" ...
    (microsoft.public.sqlserver.programming)
  • Re: Mail delivery limits problem
    ... I *am* the admin of that remote host. ... The sbs 2003 server is rejecting large mail, with an NDR as shown below. ... Regards, ...
    (microsoft.public.windows.server.sbs)