@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb011 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
usr
/
local
/
lib
/
perl5
/
5.8.7
/
Net
/
demos
/
Path :
Upload File :
New :
File
Dir
//usr/local/lib/perl5/5.8.7/Net/demos/ftp
#!/usr/local/bin/perl use blib; use Net::FTP; use Getopt::Long; $opt_debug = undef; $opt_firewall = undef; GetOptions(qw(debug firewall=s)); @firewall = defined $opt_firewall ? (Firewall => $opt_firewall) : (); foreach $host (@ARGV) { $ftp = Net::FTP->new($host, @firewall, Debug => $opt_debug ? 1 : 0); $ftp->login(); print $ftp->pwd,"\n"; $ftp->quit; }