Created
December 19, 2020 12:33
-
-
Save aryan9600/97cc20ac00d127ee28c92ba1c9696c16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use the inbuit http module in python to serve the contents inside /app/flag dir | |
python3 -m http.server 3301 --bind 127.0.0.1 --directory /app/flag & | |
# Get the PID | |
P1=$! | |
# Run the node server | |
node app.js | |
P2=$! | |
# Wait forever for both processes to finish. | |
wait $P1 $P2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment