I am getting the below error for my here document:
line 8: warning: here-document at line 4 delimited by end-of-file (wanted `START')
./appendJVM.sh: line 9: syntax error: unexpected end of file
This is the script I am using:
#!/bin/bash
for host in `cat servers.txt`;
do
ssh $host /bin/bash << START
cd /home/user/jmx/conftest
echo 'JVM_OPTS="$JVM_OPTS -javaagent:'$PWD/jmx_prometheus_javaagent-0.1.0.jar=7070:$PWD/cassandra.yml'"' >> contestf/cassandra-env.sh
START
done