I have done as you said i.e to put System.out.println() in
MyHostShellProcessAdapter.shellOutputChanged() method.
I have checked the output in the method and it is coming in the method.
However, in this method there is a for loop, inside which we are checking
"if (line.trim().equals(this.pattern1)) ". But in our case, when we log on
to unix terminal, we have to chose a module area and then command prompt
appear. Hence, there is a mismatch in the output. The pattern appears in
form "<command prompt>pattern1"; hence the equals method fails.
So in this case we changed the if statement to use endswith instead of
equals-"if (line.trim().endsWith(this.pattern1))". When we do this change,
the output appears in the console.
Can we somehow get a handle at this point to customise the method to
follow our logon procedure into unix terminal and then call
MyHostShellProcessAdapter.shellOutputChanged() so that the existing code
may work?