in reply to copy echo message into file
to capture the error messages into a scalar (and then process it or save it to a file). Or you could do this -my $result = `ping host 2>&1`;
from perl to save the results from STDOUT and STDERR of ping into external file 'result.txt'.system("ping host >result.txt 2>&1");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: copy echo message into file
by b10m (Vicar) on Dec 02, 2003 at 10:33 UTC | |
|
Re: Re: copy echo message into file
by Anonymous Monk on Dec 02, 2003 at 05:49 UTC |