Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $tmpfile = rand(); system("netstat > $tmpfile"); open(MYIN, "$tmpfile"); @connectInfo = <MYIN>; close(MYIN); unlink($tmpfile); # The following codes work on @connectInfo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: catch the output of a command
by dvergin (Monsignor) on Aug 01, 2001 at 19:31 UTC | |
|
Re: catch the output of a command
by tachyon (Chancellor) on Aug 01, 2001 at 19:33 UTC | |
|
Re: catch the output of a command
by maverick (Curate) on Aug 01, 2001 at 21:57 UTC |