I'm calling a perl script on an NT machine that should FTP a file from a folder on the IFS to a library on the AS/400.
I'm new to perl so any help is appreciated.
use Net::FTP;
$hostname = 'host';
$username = 'user';
$password = 'password';
$file = 'path/file.txt';
$remote = 'library.lib/file.member';
$ftp = Net::FTP->new($hostname);
$ftp->login($username, $password);
$ftp->put($file, $remote);
$ftp->quit;
I'm new to perl so any help is appreciated.
use Net::FTP;
$hostname = 'host';
$username = 'user';
$password = 'password';
$file = 'path/file.txt';
$remote = 'library.lib/file.member';
$ftp = Net::FTP->new($hostname);
$ftp->login($username, $password);
$ftp->put($file, $remote);
$ftp->quit;