title: Run CMD equivalent in OSX?
body: <p>I'm using this code to make my Java program open a (visible) CMD window:</p>
  
  <pre><code>try {
              String line;
              Process p = Runtime.getRuntime().exec("cmd /C start \"Render\" \"" + myPath + "\\punchRender.cmd\"");
               BufferedReader input =
                      new BufferedReader(new InputStreamReader(p.getInputStream()));
              while ((line = input.readLine()) != null) {
              System.out.println(line);
              jLabel7.setText(line);
  
              }
              input.close();
          } catch (Exception err) {
              err.printStackTrace();
          }
  </code></pre>
  
  <p>and I've been trying to do the same thing with the OSX terminal, this is where I'm at right now:</p>
  
  <pre><code>  try {
              String line;
              Process p = Runtime.getRuntime().exec("sh " + myPath + "/punchRender.sh");
               BufferedReader input =
                      new BufferedReader(new InputStreamReader(p.getInputStream()));
              while ((line = input.readLine()) != null) {
              System.out.println(line);
              jLabel7.setText(line);
  
              }
              input.close();
          } catch (Exception err) {
              err.printStackTrace();
          }
  </code></pre>
  
  <p>So far, no luck :(  Any suggestions?  The .sh file isn't even running...</p>