Skip to content

Instantly share code, notes, and snippets.

@aryan9600
Created December 19, 2020 12:33
Show Gist options
  • Save aryan9600/97cc20ac00d127ee28c92ba1c9696c16 to your computer and use it in GitHub Desktop.
Save aryan9600/97cc20ac00d127ee28c92ba1c9696c16 to your computer and use it in GitHub Desktop.
#!/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