[ 
https://issues.apache.org/jira/browse/SSHD-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sivaprasad updated SSHD-1296:
-----------------------------
    Description: 
Hi Team,

We are using Apache mina SSHD to execute remote SSH commands while executing a 
remote SSH command on Linux which takes a long time to complete( more than 1 or 
2hr.). but apache mina came out from the session and returned null as a 
response even though the command execution was not completed properly and the 
process is still running in the background. someone, please help me to overcome 
this issue. I also tried like channel.waitFor(ClientChannelEvent.EXIT_STATUS).  
then the thread goes into a forever loop. I am using the mina  2.6.0 version 
and the java 1.8 environment.

 

Thanks and Regards,

Siva.

  was:
Hi Team,

We are using Apache mina SSHD to execute remote SSH commands while executing a 
remote SSH command on Linux which takes a long time to complete( more than 1 or 
2hr.). but apache mina came out from the session and returned null as a 
response even though the command execution was not completed properly and the 
process is still running in the background. someone, please help me to overcome 
this issue.

my code snip

!image-2022-09-13-17-50-22-563.png|width=728,height=217!

I also tried like channel.waitFor(ClientChannelEvent.EXIT_STATUS). it goes into 
a forever loop.

I am using the  2.6.0 version and java 1.8 environment.

Thanks and Regards,

Siva.


> Clientchannel returning null value as a command status.
> -------------------------------------------------------
>
>                 Key: SSHD-1296
>                 URL: https://issues.apache.org/jira/browse/SSHD-1296
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>         Environment: Linux
>            Reporter: sivaprasad
>            Priority: Critical
>         Attachments: image-2022-09-13-17-49-29-563.png
>
>
> Hi Team,
> We are using Apache mina SSHD to execute remote SSH commands while executing 
> a remote SSH command on Linux which takes a long time to complete( more than 
> 1 or 2hr.). but apache mina came out from the session and returned null as a 
> response even though the command execution was not completed properly and the 
> process is still running in the background. someone, please help me to 
> overcome this issue. I also tried like 
> channel.waitFor(ClientChannelEvent.EXIT_STATUS).  then the thread goes into a 
> forever loop. I am using the mina  2.6.0 version and the java 1.8 environment.
>  
> Thanks and Regards,
> Siva.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to