A quick and neat suggestion is running the application in a screen
session (check the Solaris package).
First, you launch screen:
$ screen
Then you launch the application inside screen
, like usual:
$ java -jar /SomeApplication.jar
And you are set. You don't need the trailing &
: you can detach (see below) and log out; the screen session will be kept running. On next login, just issue:
$ screen -x
and the session, with its output, will be reattached.
A quick reference:
Use CTRL+a d (first CTRL+a together, then d) to detach from the session, so that you leave the
screen
session (with the java application running inside), go back to the Solaris shell and do other things -- including logging out graciously.Use CTRL+a ] to enter "copy mode", so that you can scroll up and down and q to leave copy mode.
There are many other useful features, just read a quick intro :)