Telnet protocol withopenocd

Hi All,

i tried to open up a seperate telnet connection withjava program and execute some commands with java application.it works fine for a command which has a long output.but for following command there is no output when it works correctly @ telnet command line.

irscan stm32.cpu

im going to automate the openocd commands with a java program then users can have a nice interface with out having command line output which is bit difficult.actually i dont have a clear idea to describe this. does any one have idea about my work? Thanks

Nuwan