Hi perl kamal,

On Wed, 23 Dec 2015 19:58:04 +0530
perl kamal <kamal.p...@gmail.com> wrote:

> Hi,
> I am trying to retrieve the port details by the process id as like below,
> but it fails.
> my $port = `ss -l -p -n | grep $pid| grep -v grep 2>&1`;
> 

In addition to what Andrew said, note that in general there is no need to pipe
to text-processing shell commands from Perl. See:

* http://perl-begin.org/tutorials/bad-elements/#calling-the-shell-too-much

Happy holidays!

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/

Some people grow older and wiser. Not I. I grow older and more foolish.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to