SLBRV2/image/bin/submit

15 lines
377 B
Bash
Executable File

#!/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 }}