When I try to run a shell script through JSCH, it gives me an error when it tries to call "sqlplus". It will run shell commands and everything fine, but when the script tries to use sqlplus, it stops and won't work. Is there some reason for this with JSCH?
The script will run up until it calls the sqlplus command. The only error it gives is this:
sqlplus: not found
with the line number this occurred on. Is this something with JSCH where it can't run commands within the scripts? Or am I missing something I need to set with the channel?
EDIT: Testing further, it can't actually even run sqlplus outside of the script.