Offer Baruch
2016-05-17 07:10:53 UTC
Hello
I am new to the list but using JSCH for a long time accessing redhat and
sles...
Lately i started using it to access ubuntu but i am having a very strange
issue.
The code i am using is shared for all distors and versions but specifically
on ubuntu every once in about 100 commands i issue (in average) i get back
an empty string.
No exceptions, input stream simply reaches EOF.
I was able to recreate the issue running the same command 400 times.
Specifically "echo offer".
In average 4 times will return an empty string. In the real world this
happen randomly on a different command each time.
It only happens with ubuntu (i am using 16.04).
I am using an exec session to run my commands with jsch .53.
Does this ring a bell to anyone?
How can i proceed to solve or get around this problem? is there any debug
options i can use?
I am not able to reproduce without jsch... i tried simple ssh with a single
command.
Can someone point me in the right direction?
Thanks on advance
Offer Baruch
I am new to the list but using JSCH for a long time accessing redhat and
sles...
Lately i started using it to access ubuntu but i am having a very strange
issue.
The code i am using is shared for all distors and versions but specifically
on ubuntu every once in about 100 commands i issue (in average) i get back
an empty string.
No exceptions, input stream simply reaches EOF.
I was able to recreate the issue running the same command 400 times.
Specifically "echo offer".
In average 4 times will return an empty string. In the real world this
happen randomly on a different command each time.
It only happens with ubuntu (i am using 16.04).
I am using an exec session to run my commands with jsch .53.
Does this ring a bell to anyone?
How can i proceed to solve or get around this problem? is there any debug
options i can use?
I am not able to reproduce without jsch... i tried simple ssh with a single
command.
Can someone point me in the right direction?
Thanks on advance
Offer Baruch