Try something like:
nohup yourcommand > output.log 2>&1 &
nohup will prevent yourcommand from being terminated in the event you log out.
& will run it in the background.
> output.log will send stdout to output.log
2>&1 will redirect stderr to stdout
Read full article from java - How to run Solr Jetty in background - Stack Overflow
No comments:
Post a Comment