jastrachan | 15 Jun 10:12 2004
Picon

Re: Console output tracing


On 15 Jun 2004, at 06:11, madhu wrote:

> Hi,
>
>  I am  writing some testcases  to trace the output  of  OC4J  DCMCTL  
> command.

I'm afraid I've no idea what DCMCTL is

>  Is there any  way to trace the output of commnad  which is displayed 
> on console using Groovy.?

I'm a bit stumped as to how Groovy relates to DCMCTL.

>
>  for example
> >DCMCTL listclusters
>  1 test
>  2  test2

If DCMCTL is a command line tool, then in Groovy you could do something 
like

proc = "DCMCTL listclusters".execute()
proc.in.eachLine { line |
     // process the line of output
}

James
-------
http://radio.weblogs.com/0112098/


Gmane