We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0651497 commit 5fd4ac2Copy full SHA for 5fd4ac2
scripts/autobot_example.sh
@@ -0,0 +1,10 @@
1
+# Capture the output of the command
2
+OUTPUT=$(python -m rpad.core.autobot available rtx2080 4 --quiet)
3
+
4
+# Split the output on the colon
5
+NODE=${OUTPUT%%:*}
6
+GPU_INDICES=${OUTPUT#*:}
7
8
+# Print the results (optional)
9
+echo "NODE: $NODE"
10
+echo "GPU_INDICES: $GPU_INDICES"
0 commit comments