title: run sh script in jmeter
body: <p>For load testing I want to randomize my testvalues before I run the test in jmeter. To do so, I want to use this bash script:</p>
  
  <pre><code>#! /bin/bash
  cat data.dsv | shuf &gt; randomdata.dsv
  </code></pre>
  
  <p>This should be executed in jmeter. I tried using a BeanShell Sampler with this command (I am using this command to always find the correct paht to the file no matter on which machine I want to execute it):</p>
  
  <pre><code>execute(${__BeanShell(import org.apache.jmeter.services.FileServer; FileServer.getFileServer().getBaseDir();)}${__BeanShell(File.separator,)}random.sh)
  </code></pre>
  
  <p>but I always get this error message:</p>
  
  <pre><code>ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval   In file: inline evaluation of: ``execute(/home/user/git/path/'' Encountered "( /" at line 1, column 8.
  </code></pre>
  
  <p>Any Ideas what to do or is there some best practice I just di not found yet?</p>