stans2k / jmeter-ssh-sampler

Automatically exported from code.google.com/p/jmeter-ssh-sampler
0 stars 0 forks source link

"Failed to execute command" and subsequent 500 response #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am giving a number of commands to be executed in a single SSH sampler.
e.g. 

rm -rf ${TEST_NAME};
mkdir ${TEST_NAME};
sleep 1;
chmod 777 ${TEST_NAME};
cd ${OUTPUT_DIR}/${TEST_NAME};
cp ${CONF_FILE_DIR}${CONF_FILE_NAME}.xml  . ;
cp ${CONF_FILE_DIR}${CONF_FILE_COPY_NAME}.xml . ;
diff ${CONF_FILE_DIR}${CONF_FILE_NAME}.xml 
${CONF_FILE_DIR}${CONF_FILE_COPY_NAME}.xml > ${TEST_NAME}.diff;

This steps fails with "Failed to execute command" response.

All the subsequent SSH samplers fail with 500 response.

Original issue reported on code.google.com by sachinba...@gmail.com on 27 Dec 2011 at 10:22

GoogleCodeExporter commented 8 years ago
Just realized that the problem is with redirection using ">" I could use "I" 
along with "tee" to get expected result. Now I am facing another issue of 
getting 500 response while I try to put a process in background using &

Original comment by sachinba...@gmail.com on 27 Dec 2011 at 1:42