Hi all,i'm trying to use omp client in a java program.I have used this code to 
get the targets:
String cmd = "omp -u admin -w admin -h 192.168.1.29 
--get-targets";ProcessBuilder builder = new ProcessBuilder(cmd);Process process 
= builder.start();
InputStream is = process.getInputStream();InputStreamReader isr = new 
InputStreamReader(is);BufferedReader br = new BufferedReader(isr);String 
line;while ((line = br.readLine()) != null) {                    
System.out.println(line);}
When i execute this code i have this error:
java.io.IOException: Cannot run program "omp -u admin -w admin -h 192.168.1.29 
--get-targets": error=2, No such File or Directory       at 
java.lang.ProcessBuilder.start(Unknown Source)       at 
MainClass.main(MainClass.java:25)Caused by: java.io.IOException: error=2, No 
such File or Directory
Where is the problem?Any ideas?
Thank You in Advance
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to