Hy,
I try to dump a postgresql database from my java application.
In cmd it goes ok:
pg_dump -U user database>outfile.sql
and CMD prompts for password
To access this command line from my java:
Runtime.getRuntime().exec("pg_dump -U user database>outfile.sql");
and now it waits for password.
I tried with Runtime.getRuntime().exec(String[])...
but nothing.
Somehow, I must set the parameter 'password' in .exec()
method,
pg_dump statement does not accept password in it's command line..