0

From this post, I stumbled upon the following bash script.

stunnel4 stunnel/dev_https &
python manage.py runserver &
python manage.py runserver 8001

What does an and operator do in this case?

1

1 Answer 1

4

The ampersands put the execution of those commands/processes into the background. The commands are started and then control immediately returns to the script to execute the next line. (In other words, the script is not blocked while they run/finish.)

Sign up to request clarification or add additional context in comments.

1 Comment

for the sake of completeness, note that the logical 'and' operator is &&.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.