Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I've tried to use this script but the problem is that after use the option 1, on the first server i see: process /data/jdk1.8.0_151/bin/java -jar -Xmx1024M /data/app/file.jar but also server 2 process /data/jdk1.8.0_151/bin/java -jar -Xmx1024M /data/app/file.jar; server 3 process.....it is normal? Commented Jul 3, 2020 at 9:57
  • @Emanuele The for serv_name in $( cat /data/server_list/list.txt ); do is your code, not mine. So I had much reason to assume that is intentional. However, just change it to your needs (which are not really clear). Commented Jul 3, 2020 at 12:32
  • this part is only to insert in ssh the name of the server and the file list.txt is a list of the server including the first where the script is launched. I don't know why the service is started correctly on the other but on the first i see 33 process. Commented Jul 3, 2020 at 13:03