0

I have a sourcefile (config) with:

TEST=master.url.com

I have a bash script which is written like this. I ssh to a server and I try to login on my cluster. I have to perform login -s masterurl as command:

#!/bin/bash
ssh -i mykey.pem centos@ec2-xx-xx 'login -s ${TEST}'

Now I try to use the ${TEST} between the single quotes. It has to show master.url.com but I don't get this working. Someone who can help me?

DenCowboy
  • 13,884
  • 38
  • 114
  • 210

0 Answers0