title: How to execute an SQL script for Derby DB from a ksh script
body: <p>I am trying to write a small program that utilizes a sql script I wrote, to access data within a Derby DB (let's call it "myscript.sql") from within a ksh script.</p>
  
  <p>I seem to be running into problems however since my ksh script can only launch the "ij" tool, and is not able to input any further commands in the ij shell once opened (thus, can not connect to the DB). </p>
  
  <p>Is there any way that the ksh script can echo commands to the ij shell, so I can connect/execute my query as needed ? </p>