nesanche / sshxcute

Automatically exported from code.google.com/p/sshxcute
0 stars 0 forks source link

exec function of SSHExec class not working correctly when used with Servlet #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I want to run a certain ssh command at the background. The command executes 
correctly, but it won't return back to calling function.
2. The same ssh command, when run through main function runs correctly and it 
return the control back to calling function
3.

What is the expected output? What do you see instead?
After executing the ssh command, it should return the control to the calling 
function & carry on with the rest of the program. Instead, it gets stuck at one 
place with output as "Start to run command". and does not move forward.

What version of the product are you using? On what operating system?
sshxcute1.0 on fedora14

Please provide any additional information below.
I am actually starting a remote server.

Original issue reported on code.google.com by vinuj...@gmail.com on 3 Dec 2013 at 1:44

GoogleCodeExporter commented 9 years ago
I am using the SSHExec class in a servlet.

Original comment by vinuj...@gmail.com on 4 Dec 2013 at 4:33

GoogleCodeExporter commented 9 years ago
I am also trying to use it for running sh file in background but unable to come 
back after server started.

any alternate you got?

Original comment by swapnil2...@gmail.com on 18 Mar 2014 at 11:09

GoogleCodeExporter commented 9 years ago
after running my command to start the server, i appended the following line to 
the same command....

ExecShellScript(destFolder,{YOUR_COMMAND}+"> output.log &","\r");

Let me know, if it works

Original comment by vinuj...@gmail.com on 19 Mar 2014 at 8:06