[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] FTP and fileHandler question



Dear MacPerlers,
i have this script:
use Net::FTP;

open (TEST, ">Macintosh HD:Desktop Folder:test");

$ftp = Net::FTP->new("192.168.1.1",Debug => 1);
$ftp->login("giorgio",'voivod');
$ftp->pwd();
$ftp->ls("/Local/Users/giorgio");
$ftp->cwd("/Local/Users/giorgio/Documenti/esLlamaBook");
open (LISTACLIENTI, $ftp->get("ANAGR00F.ANAGR00F","Macintosh HD:Desktop
Folder:xxx"));
$ftp->quit;

while ($linea = <LISTACLIENTI>) {
# do stuff
  print  TEST #write results to file
 }
}
close (LISTACLIENTI);

Everything's OK but it seeems to that the script starts to process the
dowloaded file when the download is complete: is that true? Is there a
way to check this? And, if so, is there a way to process this file
on-the-fly?
TIA

--
Giorgio Valoti

MagneticMedia Network


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org