FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 29th, 2000, 02:08 PM
dark_jurmanji
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Does anyone know how to FTP from within a CGI script?

I can't find anything about ftp in any of my Perl books.

I am trying to use Mysql > select > print into file and then ftp it to a mainframe.
Useing command line ftp it works just fine.

Should I try and use `command` or is there a module out there that can do it for me?

Reply With Quote
  #2  
Old December 29th, 2000, 02:14 PM
luciddream luciddream is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Ft. Lauderdale, FL, US
Posts: 29 luciddream User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
there is a Net::FTP module on CPAN...

try looking there.

Reply With Quote
  #3  
Old December 31st, 2000, 02:55 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 14
#!/usr/bin/perl

use Net::FTP;

$ftp = Net::FTP->new("ftp.domain.com", Debug => 0);
$ftp->login('username','password');
$ftp->binary;
#or
$ftp->ascii;
$ftp->cwd("directory");
$ftp->put("/path/to/file.txt");
$ftp->quit;

You'll find most or all ftp commands worth perfectly through this module.

Reply With Quote
  #4  
Old December 31st, 2000, 11:16 PM
dark_jurmanji
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Where can I get this module?

Is it free?
Is there a site that I can download it from?
URL

Reply With Quote
  #5  
Old January 1st, 2001, 01:44 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
luciddream already told you but not specific enough. You need to get the libnet package from http://www.perl.com/CPAN-local/modules/by-module/Net/libnet-1.0703.tar.gz

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > FTP from a CGI script

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap