You probably want to start the screen.
Try typing screenon the command line. (Install the program if you do not have one.)
Execution Example:
$ ssh yourserver
Password:
$ screen
$ java -jar YourApp.jar
output...
more output...
<Ctrl-A D>
$ exit
the next day
$ ssh yourserver
Password:
$ screen -x
$ java -jar YourApp.jar
output...
more output...
Enter man screenfor more information.
source
share