How do I keep a process, specifically one spawned via the sbt
command, alive after exiting my ssh
session? The following related questions [1], [2], [3
It is even more common. Try to type sbt clean &
or sbt compile &
. Proccess is created but it won't finish.
Solution for your question by using tmxux
:
tmux new -d -s $$ && tmux send -t $$ 'SHELL_COMMAND' ENTER
In your context SHELL_COMMAND
= sbt -Dgeotrellis cluster_seed_ip=xxx.xxx.xxx.xxx
You can also use tmux
behind byobu
:
byobu new -d -s $$ && tmux send -t $$ 'SHELL_COMMAND' ENTER
After that if you type byobu
then you enter session of your command.