I was wondering if I can run unix commands without leaving the server. If so, how? I used a Bash script to start the server, and I want to have a Bash script that shuts down the server when users click the stop button. However, when the Bash script is executed, the commands do not seem to be executed, but simply hang there.


I tried to start fuser -k 8000/tcp, but this is clearly not how I should do it, since it did not start. Can someone give me a hand?
source
share