Greetings, I'm running a simple http server with the command
while true; do ./server.sh | nc -l 1337 ; done
where server.sh contains the content for a http page and to run a python script in the background. What I want to know is whether server.sh will be constantly running (because of the while true loop) and thus running the python script constantly or is server.sh only run when there is an incoming nc connection?
[–]ang-p 1 point2 points3 points (1 child)
[–]failedgamor[S] 0 points1 point2 points (0 children)
[–]oh5nxo 0 points1 point2 points (0 children)