in reply to System utilities with Perl
perl -MIO::Socket::INET -le "do{$s=IO::Socket::INET->new(PeerAddr=>'12 +7.0.0.1',PeerPort=>$_,Timeout=>1);print $s? $_.' OPEN' : $_.' CLOSED' +}for ARGV[0]..$ARGV[1]" 1 1024
You should also check out the Perl Power Tools Project which has ported many of the popular *nix command line tools to Perl.
cheers
tachyon
|
|---|