banjopicker
Programmer
I am trying to execute a series of ftp commands within a perl script on windows. I thought this would be as easy as using DOS commands with 'system' commands. This does not seem to work and I get stuck at the first ftp step. I have also tried using ampersands as a continuation of the DOS commands but that does not work either. Below is the code I am using. Any feedback is greatly appreciated,
banjopicker
#!/usr/bin/perl -w
#####################################
# FTP in Perl
#####################################
use strict;
use warnings;
system ('ftp');
system ('open servername');
system ('username,password');
banjopicker
#!/usr/bin/perl -w
#####################################
# FTP in Perl
#####################################
use strict;
use warnings;
system ('ftp');
system ('open servername');
system ('username,password');