I developed a Java application. I divided the application into 5 sub-applications, and created a service wrapper to each sub application using shell scripts:
subaap1/bin/app.sh
subaap2/bin/app.sh
...
Now I want to create a startup script startup.sh to execute all the wrapper scripts:
#!/bin/bash
sh subaap1/bin/app.sh start
sh subaap2/bin/app.sh start
...
But when I run it, I get:
Unexpected command: start
How can I fix this?