SLBRV2/image/bin/submit

15 lines
377 B
Plaintext
Raw Normal View History

2021-06-13 22:53:53 +00:00
#!/bin/bash
help_text="
submit.sh - submit an slbr solution to be verified
usage: ./submit <challenge number> <solution>
for example: ./submit 3 \"this is the solution for challenge 3\"
"
challenge_no="$1"
submitted_solution="$2"
[ -z "$submitted_solution" ] && echo "$help_text" && exit
echo "SUBMIT $challenge_no $submitted_solution" \
| nc {{ HOST_IP }} {{ SLBR_PORT }}