Skip to content
Advertisement

Reading output after Linux cmd execution is going to infinite loop

I am executing a cmd from jsch , once command is completed I need to show the command output. while reading the command output its taking long time and its ns not coming from the while loop even after execution of command. The following is my code:

JavaScript

Advertisement

Answer

I have added the exit command at the end of the command.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement