Forum Discussion
3 years ago
Thanks for the answer!
Unfrtunatelly I'm connecting to terminal which is readirecting me directly to some application, not to the prompt.
As I'm making first stepps in Grovvy/Java I was trying to use JSCH however i'm not sure if I would be able to print terminal output like in Expect class
With use of JSCH, I could than use .setPtyType("xterm"); .
I have just found some solution on this community however I dont know how to force it to re-print terminal output. I guess I would have to connect "shell" instead of "exec", right ?
But...I can't handle this.
Untill below line, it is clear to me what is happening in the script, but can't get to the screen output...:(
session.openChannel("exec")
/topic/7552-anyone-had-success-with-snmp-and-reboot-required-state/
Thanks in advance for any help .
Related Content
- 2 years ago