[JSch-users] How to execute some command as background (daemon) process
Status: Alpha
Brought to you by:
ymnk
From: Miroslav N. <m.n...@pr...> - 2008-09-17 05:19:02
|
Hi, I am trying to execute some command as background process (as daemon) using the following code: ChannelExec.setCommand("myCommand &"); Unfortunately the expected result is that the ChannelExec session is still open (channelExec.isClosed()) and my java application can not finish until the process is still active. When I kill the remote process my application is finished. How can I start some process as daemon (in background mode)? Regards, Miro. |