in reply to need to ftp file
You should also read perldoc Net::FTP to be certain you know what's going on here. Also this example does not do any error checking you can figure that out by reading perldoc Net::FTP, but this will give you an idea.#!/usr/bin/perl -w use strict; use Net::FTP; my $user = 'XXXX'; my $password = 'XXXXX'; my $ftp = Net::FTP->new('your_ftp_box'); $ftp->login($user, $password); my $file = glob 'whatever*you*need'; $ftp->put($file, 'whatever_name_you_want'); $ftp->quit;
Good luck
Sweetblood
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: need to ftp file
by mpeters (Chaplain) on Jan 19, 2005 at 19:17 UTC |