even if this could run source, it would do it in a different shell to the
one which executes sqlplus.
So the environment wouldn't be set properly.

> > String command ="source /opt/bin/coraenv";
> > String runsql = "sqlplus";
> >
> > Runtime runtime = Runtime.getRuntime();
> > Process process = null;
> > Process sql = null;
> >
> > try {
> >         process = runtime.exec(command);
> >         sql = runtime.exec(runsql);
> > }//end try
> >
> > this brings up
> >
> > java.io.IOException: source: not found

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to