Created
April 3, 2018 02:28
-
-
Save stylesen/cb93346481f43a0c899b7c1e58473d33 to your computer and use it in GitHub Desktop.
lavacli job submit after completion of each job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
count="0" | |
while [ "$count" -lt "5" ] | |
do | |
echo "Iteration: $count" | |
job_id=$(lavacli --identity localhost jobs submit /tmp/lxc.yaml) | |
echo "Submitted job: $job_id" | |
lavacli --identity localhost jobs wait $job_id | |
count=$[$count+1] | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment