Skip to content

Instantly share code, notes, and snippets.

@stylesen
Created April 3, 2018 02:28
Show Gist options
  • Save stylesen/cb93346481f43a0c899b7c1e58473d33 to your computer and use it in GitHub Desktop.
Save stylesen/cb93346481f43a0c899b7c1e58473d33 to your computer and use it in GitHub Desktop.
lavacli job submit after completion of each job
#!/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