Hi Andy,
Thanks for the reply.
I tried it out, but still not able to store error msgs.
What does 2>&1 mean?
Is there any other way out.
Thanks,
Divya
Andy Greenwood wrote:
On 5/18/07, divya <[EMAIL PROTECTED]> wrote:
Hi,
I want to store the output of following command:
"vcover merge outfile in1 in2"
I tried :
1) @result = `vcover merge outfile in1 in2`;
2) system("vcover merge outfile in1 in2 > @result");
I can see some error displays on the screen. But these are not getting
stored in @result.
backticks (``) will direct the STDOUT of the command to the array.
However, your STDERR will not be directed normally. If you want those
errors directed into your array, try something like
@result = `vcover merge outfile in1 in2 2>&1`;
Kindly please suggest some way to store it.
NOTE : script runs on linux m/c
Thanks,
Divya
eInfochips Business Disclaimer:
This message may contain confidential, proprietary or legally Privileged information. In
case you are not the original intended Recipient of the message, you must not, directly
or indirectly, use, Disclose, distribute, print, or copy any part of this message and you
are requested to delete it and inform the sender. Any views expressed in this message are
those of the individual sender unless otherwise stated. Nothing contained in this message
shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or
eInfochips Inc("eInfochips") unless sent with that express intent and with due
authority of eInfochips. eInfochips has taken enough precautions to prevent the spread of
viruses. However the company accepts no liability for any damage caused by any virus
transmitted by this email.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/