A
André Hurschler
Hello
I start a Linux bash script for Oracle import, with the exec command.
With JDK 1.3 is everything correct but JDK 1.4 breaks
the process after 20000 imported rows.
Has someone an idea ?
Runtime rtime = Runtime.getRuntime();
Process child = rtime.exec("/bin/bash");
BufferedWriter outCommand = new BufferedWriter(new
OutputStreamWriter(child.getOutputStream()));
// execute the command
outCommand.write(command);
outCommand.newLine();
outCommand.flush();
// exit bash shell
outCommand.write("exit");
outCommand.newLine();
outCommand.flush();
// wait for the shellscript to complete
try
{
int retCode = child.waitFor();
return retCode;
}
catch (InterruptedException iex)
{
// interrupted by another thread
return -1;
}
thanks
André Hurschler
(e-mail address removed)
I start a Linux bash script for Oracle import, with the exec command.
With JDK 1.3 is everything correct but JDK 1.4 breaks
the process after 20000 imported rows.
Has someone an idea ?
Runtime rtime = Runtime.getRuntime();
Process child = rtime.exec("/bin/bash");
BufferedWriter outCommand = new BufferedWriter(new
OutputStreamWriter(child.getOutputStream()));
// execute the command
outCommand.write(command);
outCommand.newLine();
outCommand.flush();
// exit bash shell
outCommand.write("exit");
outCommand.newLine();
outCommand.flush();
// wait for the shellscript to complete
try
{
int retCode = child.waitFor();
return retCode;
}
catch (InterruptedException iex)
{
// interrupted by another thread
return -1;
}
thanks
André Hurschler
(e-mail address removed)