The Home of C&P Software on the Web |
|
| Home Blogs About us Why Choose Us? What Are People saying? OneClickAway PC Support Professional Profile Free Software here!!! Contact Us Privacy Notice Useful Links NLP
|
Exit Java ApplicationHave you ever started a java app from an SSH session and when you are done you try to exit the SSH session and it's not exiting. Another symptom woudl be to call the java app from a script and the script never regains contol from the Java App. The solution is simple... Your program still has descriptors for stdin, stdout and stderr open and sshd is waiting for them to close. Either have your program close those descriptors or redirect them to /dev/null. You probably also want to use "nohup" to prevent the program from exiting on SIGHUP. Here is an example that should help you....
Enjoy!
|