I've got a problem, which I cannot solve on my own.
I want to start a bash script on bamboo, so I cannot stop it with ^C
. This bash script starts a server, which should run after stopping the script.
If I start the script with the command line, it works as it should, but in order to stop the script I either have to enter Enter
or ^C
to exit the script. But I cannot do this in Bamboo!
This is a short version of my script:
#!/bin/bash
./Server &
I start it with: /bin/bash ./executeServer.sh &
At the end of the script I tried to write:
exit 0
-> no consequence
kill %1
-> the script stops before starting the server
^C
-> unknown command
Thank you!!