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 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
Irfan Sayed

 


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to