I am doing scp using below code deployed on server.
String cmd = "scp /'location'/'file' useracc@xxx.xxx.xxx.xxx:/'location'/" ;
Runtime run = Runtime.getRuntime();
Process pr = run.exec(cmd);
pr = run.exec("password");
The file is not being copied. It throws no error. This is deployed on linux server.
What should I change ?