Run sbt &(with or without command, e.g. sbt package &)
system: Mac OS or Cent OS
shell: bash or zsh
The background process will be stopped and [2] + suspended (tty output) sbt prints out.
sbt should run in the background.
tostop flag, but I've already make sure that flag sets to off(-tostop) on my machines.>/dev/null 2>/dev/null, but it was still suspended.sbt version: [1.2.8, 0.13.15]
This seems to work for me:
sbt -Djline.terminal=none < /dev/null &
Looks like jline.terminal does the magic. And I can now write scripts with background sbt tasks.
Thank you for the reply馃構
This still feels hacky. There should be a clear option (e.g., sbt.ci or --batch) that guarantees nothing will be done with the terminal. It gets in the way in other places (e.g., using timeout).
Most helpful comment
This seems to work for me: