Atsuhiko Yamanaka wrote:
> Hi,
>
> +-From: Miroslav Nachev <[EMAIL PROTECTED]> --
> |_Date: Wed, 17 Sep 2008 15:18:56 +0300 ________
> |
> |I am trying to execute some command as background process (as daemon)
> |using the following code:
> | ChannelExec.setCommand("myCommand &");
> ...
> |How can I start some process as daemon (in background mode)?
>
> How about the following?
>
> ChannelExec.setCommand("myCommand > /dev/null 2>&1 &");
If you want it to carry on running when you disconnect then
nohup mycommand &
Is what you want...
--
M
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users