my $tmpfile = rand(); system("netstat > $tmpfile"); open(MYIN, "$tmpfile"); @connectInfo = <MYIN>; close(MYIN); unlink($tmpfile); # The following codes work on @connectInfo
In reply to catch the output of a command by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |