# HG changeset patch # User Henry S. Thompson # Date 1538137769 0 # Node ID be5de30147ab631f22a1a388d5325695478831f4 # Parent b4b731c105e224187157987986548fe4d082db1b just barely diff -r b4b731c105e2 -r be5de30147ab master/bin/makeWorker.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/master/bin/makeWorker.sh Fri Sep 28 12:29:29 2018 +0000 @@ -0,0 +1,11 @@ +#!/usr/bin/bash +# Usage . makeWorker.sh name +# Source this to get the worker name set to its IP address +name=$1 +ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") +export $name=$ip +echo $name=$ip +ssh -o StrictHostKeyChecking=no $ip