| run_on_cluster.sh - brcon2025-hackathons - Bitreichcon 2025 Hackathons | |
| git clone git://bitreich.org/brcon2025-hackathons git://enlrupgkhuxnvlhsf6lc3fz… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| --- | |
| run_on_cluster.sh (260B) | |
| --- | |
| 1 #!/bin/sh | |
| 2 | |
| 3 if [ $# -lt 1 ]; | |
| 4 then | |
| 5 printf "usage: %s script.py\n" "$(basename "$0")" >&2 | |
| 6 exit 1 | |
| 7 fi | |
| 8 | |
| 9 pyscript="$1" | |
| 10 | |
| 11 { | |
| 12 # Automatically select a board to run the script on and load it | |
| 13 echo a | |
| 14 echo l | |
| 15 cat "$pyscript" | |
| 16 echo . | |
| 17 } | nc -v -w 10000 bitreich.org 7000 |