Why does the channel connect AFTER setting the command? I intuitively thought you would connect, and then run some commands with setcommand, and then disconnect.
Hi anyone, When i am using the above code for executing commands. The command will take time 2 to 3 minutes so in this case eclipse is hanging infinitely and nothing is showing in console. any specific wait we need to keep for the commands which take time?