Reply to topic
Moving Files from Windows to Linux
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 766
Location: Newark, De
Reply with quote
One of our clients is working on an application that has 'accidentally' straddled two operating systems - Debian Linux and Windows 2003. The Linux server is being used as an SMTP mailer taking advantage of PostFix and Mailman, our recommended open source list server software.

In order to update the list, however, our client must write subscribing addresses to a text file, which is copied from the Windows server to the Linux server (using some sort of cronjob w/FTP I assume) and then a command line script adds members based off the contents of the text file.

<whew>

Now, can anyone here clarify how the Linux server can FTP files from the Windows server on a schedule?
spandox


Joined: 03 Jul 2004
Posts: 17
Location: Delaware
Reply with quote
Ok - well this is a perl form - here is the module to use - it is pretty easy and straightforward. To the new, a login (don't use anonymous) and a get. Done

Code:
NAME
       Net::FTP - FTP Client class

SYNOPSIS
           use Net::FTP;

           $ftp = Net::FTP->new("some.host.name", Debug => 0)
             or die "Cannot connect to some.host.name: $@";

           $ftp->login("anonymous",'-anonymous@')
             or die "Cannot login ", $ftp->message;

           $ftp->cwd("/pub")
             or die "Cannot change working directory ", $ftp->message;

           $ftp->get("that.file")
             or die "get failed ", $ftp->message;

           $ftp->quit;
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 766
Location: Newark, De
Reply with quote
LoL...I guess you could call that "Do or Die" code. Laughing
Moving Files from Windows to Linux
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic