How to use unix commands while Django development server is running? (image provided)

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.

enter image description here

enter image description here

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?

+2
source share
1 answer

nohup python manage.py runserver 0.0.0.0:8000 &

nohup.out.

unix nohup . , bash script, , pid kill.

+2

Source: https://habr.com/ru/post/1534351/


All Articles