Hi ALl,
I am trying to send debug info from an FTP session to a log file, I don't seem to
redirect output to that log file. If somebody can hgelp I'd really appreciate. Thanks
Here is my code:
+++++++++++++++++++++++
use Net::FTP;
$logfile = "mylog.log";
open (LOG, ">> $logfile " );
print LOG "====================================\n";
$file = "file.pl";
if (-e $file){
$ftp = Net::FTP->new("hostname", Debug=>1);
$ftp->login("user",'passwd');
$ftp->cwd("/usr/users/user/");
$ftp->binary;
$ftp->put($file);
$ftp->quit;
}
close(LOG);
+++end of code++++++++++++++++++++++++++++
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/