One line way to find an open port?
Hi,
I'm using Ubuntu Linux 11.04. Is there a way to find an unused port, starting from 4444 and gradually going upwards? I'm grateful for brevity on this one, since I'm using this port value in a Perl script, so I would like to call ...
my $openPort=`my_port_finding_command`;
Thanks, - Dave
|