From: Erick J. B. <er...@e-...> - 2001-01-19 22:18:26
|
Sorry, here is the sub for connecting to an FTP server sub CmdConnect_Click { my $FTPInfo; $Textbox->Text("Connecting to $Host"); if ($ftp = Net::FTP->new($Host, Timeout => 45, Debug => 1)) { $FTPInfo = Net::Cmd::message(); #Problem lies here, it just stops $StatusBar->Text("$FTPInfo"); if ($ftp->login($User, $Pass)) { $StatusBar->Text("Logged on to $Host ..."); } else { $StatusBar->Text("Connect not authenticated."); } } else { $StatusBar->Text("Can't connect to $Host"); } } |