title: Isql command error while executing query on Sybase database
body: <p>I would like to create a Windows batch file to execute the query on Sybase database running on Linux.</p>
  
  <p>Batch file:</p>
  
  <pre><code>plink.exe -ssh sybase@&lt;IP&gt; -pw &lt;PW&gt; -m C:\scripts\script1.bat -t &gt; C:\scripts\testing.log
  </code></pre>
  
  <p><code>script1.bat</code>:</p>
  
  <pre><code>echo --- query 1 -----
  cd /sybase/OCS-15_0/bin/
  isql -Uimaldb_bkp -Pstart_bkp -SLinux1 -Dimaldb
  sp_helpsegment
  go
  exit
  </code></pre>
  
  <p>It works fine until <code>isql</code> command and gives output in testing.log: </p>
  
  <blockquote>
    <p>--- query 1 ----- bash: isql: command not found bash: sp_helpsegment: command not found bash: go: command not found</p>
  </blockquote>
  
  <p>Please advice.</p>