linux screen run jar 1

linux screen run jar

screen -dmS screenname bash -c "java -jar jarname.jar"

Here is what the above code is Doing:
1. screen -dmS screenname
– This creates a new screen session with the name screenname.
2. bash -c “java -jar jarname.jar”
– This runs the command java -jar jarname.jar inside the screen session.

Similar Posts