in reply to How to share records between ftp servers?
the file mystartfile:use strict; use warnings; # ... chdir('/path/to/put/files/in'); system('ftp', '-N', 'mystartfile', 'ftp.server.com') && die "FTP FAI +LURE: $!\n"; chdir('/where/I/was/before'); # ...
This code has your Perl program waiting for completion of the FTP transfer. If this is not necessary, write the system command like so:machine ftp.server.com login me password somesillypw binary cd /path/to/fetch/from mget * bye
system('ftp -N mystartfile ftp.server.com &') && die "Couldn't start f +tp transfer: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to share records between ftp servers?
by Doyle (Acolyte) on Oct 10, 2005 at 18:48 UTC | |
by samizdat (Vicar) on Oct 10, 2005 at 20:30 UTC |