Context: I have a task to run a few script on a remote machine, and exit
I have a script, but I am confused how to use the line break inside it,
triggerPerformanceTest(){ report=$1 userDataFiles=$2 baseURL=$3 cdnURL=$4 streamingURL=$5 echo "Startin the Jmeter script" ssh -tt -i Test.ppk username@<test server> <<EOF cd apache-jmeter-3.1/bin/ JVM_ARGS="-Xms512m -Xmx25000m" ./jmeter.sh -n -t /home/ubuntu/JMeter/Test.jmx --jmeterproperty XMLReport=$report --jmeterproperty UserDataFile=$userDataFiles --jmeterproperty BaseUrl=$baseURL --jmeterproperty CdnUrl=$cdnURL --jmeterproperty StreamingUrl=$streamingURL --jmeterproperty isBenchMark=false --jmeterproperty Enable_DigitalExhaust=true --jmeterproperty Enable_Health=true --jmeterproperty HealthPollingInterval=6 exit EOF echo "Test successfully executed" } triggerPerformanceTest Log.csv UserDataFile.csv localhost localhost localhost In step two, where I am running the JMeter script, it has a lot of properties. Is there a way I can use a line break here, so it will consider all the lines to be in one step. Like mentioned below
ssh user@server << EOF command_one command_two argument1 argument2 argument3 argument4 argument5 argument6 argument7 command_three EOF Apologies if there is any duplicate ask for this.