On Mon, 2006-17-04 at 19:40 +0530, Irfan J Sayed wrote:
Hi,
I am executing following command
foreach $_ (@vob_list)
{
system cleartool lock vob:$_;
}
I want to catch the output of this system command in the file
can anybody please tell me that how can i achieve that
Regards
On 4/17/06, Irfan J Sayed [EMAIL PROTECTED] wrote:
snip
I want to catch the output of this system command in the file
snip
TIMTOWTDI
#shell redirection
foreach my $vob (@vob_list) {
system cleartool lock vob:$vob output;
}
#store in array
my @output;
foreach my $vob (@vob_list) {
push
You could always use backticks (``) to capture the output in an array
and then print it to a file.
-Original Message-
From: Irfan J Sayed [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 7:11 AM
To: beginners@perl.org
Subject: Catching the output in file
Hi,
I am executing
Irfan J Sayed wrote:
Hi,
Hello,
I am executing following command
foreach $_ (@vob_list)
{
system cleartool lock vob:$_;
}
I want to catch the output of this system command in the file
can anybody please tell me that how can i achieve that
a) have the shell do it:
cleartool lockk