title: Not able to run mjpg_streamer from a shell script run by a Java process
body: <p>I'm new to Linux. My shell script is streamscript.sh</p>
  
  <p>Contents are:</p>
  
  <pre><code>/usr/local/bin/mjpg_streamer -i "input_uvc.so -y -f 100 -r 640*480" -o "output_http.so -w /usr/local/www"
  </code></pre>
  
  <p>Java Code:</p>
  
  <pre><code>public static void main(String[] args){
      try{
         String target = "/home/pi/java_project_gf/streamscript.sh";
         ProcessBuilder pb = new ProcessBuilder(target);
         pb.start();
  } catch(Exception ex){
         System.out.println("Exception thrown" + ex.getMessage());
  }
  
  }
  </code></pre>
  
  <p>If I write <code>mkdir dummyDir</code> in the shell script, it is creating the directory. But mjpg_streamer is NOT running. </p>