develooper Front page | perl.beginners | Postings from May 2007

Unable to store the output of a command

Thread Next
From:
divya
Date:
May 18, 2007 05:22
Subject:
Unable to store the output of a command
Message ID:
464D9B38.7040809@einfochips.com
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.

Kindly please suggest some way to store it.

NOTE : script runs on linux m/c

Thanks,
Divya


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About