Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Using exec command for exp utility in oracle

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I am having following code
Process OBJ=Runtime.getRuntime().exec("C:\\test.cmd");
int exitValue=OBJ.waitFor();
System.out.println(exitValue);

In test.cmd i am calling the export utility of Oracle ie exp command.
The problem is the export gets done but control does not returns back to my code,thus OBJ.waitFor() does not gets complete.

Please Advise.
 
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't post the same question in multiple threads
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic