Re: Catching the output in file

2006-04-17 Thread JupiterHost.Net
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 v

RE: Catching the output in file

2006-04-17 Thread Timothy Johnson
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

Re: Catching the output in file

2006-04-17 Thread Chas Owens
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) {

Re: Catching the output in file

2006-04-17 Thread Mr. Shawn H. Corey
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

Catching the output in file

2006-04-17 Thread Irfan J Sayed
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