How to run a java program in backgroud (unix / Linux)
Many times, we use terminal to remote access into our unix server to run java server process or java services. However we cant type anything After we executed java program like following
debian:/QueryTestServer# java QueryTestServerIn addition, the java program will automatically killed after we terminated our remote shell prompt. This is not what we want. Is there any command that can run a java program in Unix background environment?
Yes it is. In order to run a java program in unix background environment, we need to append “&” to the end of our command.
debian:/QueryTestServer# java QueryTestServer &
Done, the java program will executed in Unix background environment until we explicitly kill it.
- Java Core Technology - Java RegEx, Java XML, Java I/O, Java Misc
- J2EE Frameworks - Hibernate, Spring 2.5, Spring MVC, Struts 1.x, Struts 2.x
- Build Tools - Maven, Archiva
- Unit Test - jUnit, TestNG
- Client Scripts - jQuery
Thanks! Exactly what I was looking for.
tnx.. i found 1 of my assignments…
can you help me some times if i have my other assignments?…
Assignment? Try send me an email
Interesting,
Although linux is not so widely used ,
Keep up the good work
Is it? Linux is not widely use in UK? However, this is very common and widely use in open source development environment