How to use java.lang.Runtime to execute bunch of commands (something like interactively)
Posted on 2006-07-11
I have a requirement.
i am facing problem in taking the DataBase dump from a remote m/c.
the connection will be going suddenly and hence unable to take the Database dump.
is there anyway i can execute the same by using java.lang.Runtime class to get the desired classes.
Need to execute the following steps.
a) connecting to the database: exp user/password@db
after executing the command line it prompts for the fetch size and wheter from user, table and
it should be exported to which dmp file etc etc.
is there any sample code available to tackle these kind of things?