Skip to main content
deleted 51 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 239

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.

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.

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 
grammar
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

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. Is there a way I can use a line break here means, so it will consider all the line break willlines 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.

Context: I have a task to run few script 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 has a lot of properties, is there a way I can use a line break here means it will consider all the line break will 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.

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.

Source Link

Efficient use of line break in shell script

Context: I have a task to run few script 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 has a lot of properties, is there a way I can use a line break here means it will consider all the line break will 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.