Results 1 to 5 of 5
Thread: using RMAN commands in Java
- 03-21-2011, 11:00 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Power
- 0
using RMAN commands in Java
I tried to launch thow Runtime processor RMAN commands, but after execution "RMAN" next commands cannot be executed, here is my code, what is the problem?
ArrayList<String> cmd=new ArrayList<String>();
cmd.add("rman");
cmd.add("connect target/");
cmd.add("exit");
for (int i=0;i<cmd.size();i++){
Process proc=rt.getRuntime().exec(cmd.get(i).toString());
BufferedReader br=new BufferedReader(new InputStreamReader(proc.getInputStream()));
String line=br.readLine();
while(line!=null)
{
line=br.readLine();
System.out.println(line);
}
- 03-21-2011, 02:00 PM #2
Go through all the sections of this article and implement ALL the recommendations.
When Runtime.exec() won't - JavaWorld
db
- 03-21-2011, 05:59 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Power
- 0
unfortunately your link cannot be open, there is 403 Error, could you give me another one, thank you
- 03-22-2011, 01:12 AM #4
Opens fine for me. Try again.
db
- 03-22-2011, 04:59 AM #5
Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Power
- 0
Similar Threads
-
Commands on java.
By Slithice in forum New To JavaReplies: 15Last Post: 11-15-2012, 10:06 AM -
At commands in java
By strictlydivine.elite in forum Advanced JavaReplies: 1Last Post: 11-22-2010, 09:55 AM -
Run Unix commands from Java
By yahyaaa in forum New To JavaReplies: 13Last Post: 06-17-2010, 11:50 PM -
Help file for Java commands?
By tyang in forum New To JavaReplies: 2Last Post: 01-31-2010, 05:09 AM -
Low-level java commands
By artemff in forum New To JavaReplies: 8Last Post: 01-01-2010, 06:23 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks