A
asd
Hi all,
I am trying to execute a cpp application (called iosconvert) from java
code. The details are as follows:
Runtime rtime = Runtime.getRuntime();
String str_ios = new String[]("iosconvert", "/home/arvind/cisco2.conf",
"/home/arvind/nct1/bin/cisco2.xml");
proc = rtime.exec(str_ios);
int exitVal = proc.waitFor();
System.out.println("exit = "+exitVal);
Iosconvert takes two parameters, which are passed. Now when I run this
code it hangs at proc.waitFor().
Since I am executing the code on CLI I have to do a CTRL+C. The exit
value that gets printed is 129.
On the other hand when I execute the cpp application directly from CLI
it works fine.
Thanks in advance for any help.
I am using j2re 1.4.2 on Linux env.
regards,
ASD
I am trying to execute a cpp application (called iosconvert) from java
code. The details are as follows:
Runtime rtime = Runtime.getRuntime();
String str_ios = new String[]("iosconvert", "/home/arvind/cisco2.conf",
"/home/arvind/nct1/bin/cisco2.xml");
proc = rtime.exec(str_ios);
int exitVal = proc.waitFor();
System.out.println("exit = "+exitVal);
Iosconvert takes two parameters, which are passed. Now when I run this
code it hangs at proc.waitFor().
Since I am executing the code on CLI I have to do a CTRL+C. The exit
value that gets printed is 129.
On the other hand when I execute the cpp application directly from CLI
it works fine.
Thanks in advance for any help.
I am using j2re 1.4.2 on Linux env.
regards,
ASD