Hey,
im a starter in writing shell scripts so please be kind ^^
My problem:
I wrote 2 shell script which starts a jar in a screen.
Then i wanted to start this 2 screens with one script.
The script runs, but the screen doesn't open.
Yes, i could instead of running the other scripts in a seperate file just paste the code in the main shell file but then the jar wouldn't run in the right folder.
If run the scripts manually everything works.
Here the code of the 2 shell scripts:
PHP Code:
#!/bin/bash
screen -S Master -d -m java -jar "Cloudy Master 0.1.2-obf.jar"
PHP Code:
#!/bin/bash
screen -S Wrapper -d -m java -jar "Cloudy Wrapper 0.1.2-obf.jar"
The Main Script
PHP Code:
#!/bin/bash
/home/Cloud/Master/startMaster.sh
sleep 5
/home/Cloud/Wrapper/startWrapper.sh
*Yes, i did check the permissions of the files*
Thank you in advance