The replies to my first email suggest using Net::FTP.  But it doesn't work correctly.  
Below are the warning and error I receive.

During installation:

WARNING: Prerequisite User failed to load: Can't locate User.pm in @INC ( @INC 
contains: /u/tbrannon/perl/inetcrossftp/src/lib/site_perl/5.6.0/i386-linux  
/usr/lib/perl5/site_perl/5.6.0  /usr/lib/perl5/site_perl .) at (eval5) line 3.

When I attempt to transfer a file I get the following:

Can't locate Net/FTP/Common.pm in @INC ( @INC contains: 
/usr/lib/perl5/5.6.0/i386-linux  /usr/lib/perl5/5.6.0  /usr/lib/perl5/site_perl .) at 
/usr/lib/perl5/site_perl/5.6.0/Net/FTP/Shell.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/Net/FTP/Shell.pm 
line 7.
Compilation failed in require at please.pl line 3.
BEGIN failed--compilation aborted at please.pl line 3.

I am running Red Hat Linux 7.0.  Are there other files that need to be installed?

Thanks,
Randall Paulk
  ----- Original Message ----- 
  From: Randall Paulk 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, May 03, 2001 11:01 AM
  Subject: transfer files via FTP ????


  I am new to Perl ( and programming in general).  I have a seemingly simple task for 
which I would like to write a script.  Here is the scenario.

  I have four LINUX boxes that I would like to automatically, once a day, open an FTP 
session and transfer three files to an FTP server.  

  I have looked through the Programming Perl book and tried the system command.  But 
it only opens the ftp session and waits for input.  I also tried the Net::FTP module.  
But it displays a warning during install.  Afterwards, it gives me an error when I try 
to transfer a file.

  Is there an easy way to transfer files automatically?


  Thank you,
  Randall Paulk
  Houston, TX

Reply via email to