shell - How to specify different nohup.out files for multiple JVMs running into the same script? -


i have shell script launching different java jvms in parallel , sequential, looks this:

(java -jar project1.jar java -jar project2.jar) & (sleep 60; java -jar project3.jar java -jar project4.jar) & (sleep 120; java -jar project5.jar) & (sleep 180; java -jar project6.jar java -jar project7.jar) 

i launch shell script using following command :

nohup sh launch.sh & 

it generates unique nohup.out file different jvms outputs scrambled. i'd have 1 nohup file per jvm (let's nohupproject1.out, nohupproject2.out...) containing specific output.

is possible ? maybe adding jvm arguments ?

thank you


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -