N
Nex_s
Hi All,
I'm trying to format a date and store it in a variable for a file
name. The file gets created but for some reason my FTP process sends
an empty file with the same name.
Any help would be greatly appreciated.
Chris
Here's how I'm formatting the date.
$file = "dms_nspwr_" . `date +%b_%d_%y_%H%M.txt`;
Here's my FTP code:
$ftp = Net::FTP->new("123.456.789.10", Debug => 0)
or die "Cannot connect to some.host.name: $@";
$ftp->login("username",'password')
or die "Cannot login ", $ftp->message;
#$ftp->cwd("/pub")
# or die "Cannot change working directory ", $ftp->message;
$ftp->put("$file")
or die "put failed $file", $ftp->message;
$ftp->quit;
I'm trying to format a date and store it in a variable for a file
name. The file gets created but for some reason my FTP process sends
an empty file with the same name.
Any help would be greatly appreciated.
Chris
Here's how I'm formatting the date.
$file = "dms_nspwr_" . `date +%b_%d_%y_%H%M.txt`;
Here's my FTP code:
$ftp = Net::FTP->new("123.456.789.10", Debug => 0)
or die "Cannot connect to some.host.name: $@";
$ftp->login("username",'password')
or die "Cannot login ", $ftp->message;
#$ftp->cwd("/pub")
# or die "Cannot change working directory ", $ftp->message;
$ftp->put("$file")
or die "put failed $file", $ftp->message;
$ftp->quit;