[StarCluster] sshmaster run shell with variables

Jian Feng freedafeng at yahoo.com
Thu Dec 4 17:11:35 EST 2014


Hi, 

I am wondering if it is possible to remotely run commands with variables, sth like

#!/bin/bash
for i in {1..10}
do
  starcluster sshmaster mycluster 'bash -s' << 'ENDSSH'
  mkdir ~/$i
  ENDSSH
done

The previous script does not work because $i is not replaced by 1, 2, etc. Anyway a variable can be used inside the shell?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/starcluster/attachments/20141204/45ad6831/attachment.htm


More information about the StarCluster mailing list