The code I entered is as follows:
try {
Runtime update = Runtime.getRuntime();
Process process = update.exec("Devcom > /home/smsh/target"
//the above command on AIX should put the output of the Devcom program into a file named target.
InputStream smin = process.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(smin));
while ((sminput = smreader.readLine()) != null) {
System.out.println(input);
}
The problem is that the Devcom program is run and the output is displayed on a terminal yet it is not sent to the proper file as it should with the command above. Does that command need to be rewritten in any way to work right? Please let me know. Thanks in advance.
try {
Runtime update = Runtime.getRuntime();
Process process = update.exec("Devcom > /home/smsh/target"
//the above command on AIX should put the output of the Devcom program into a file named target.
InputStream smin = process.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(smin));
while ((sminput = smreader.readLine()) != null) {
System.out.println(input);
}
The problem is that the Devcom program is run and the output is displayed on a terminal yet it is not sent to the proper file as it should with the command above. Does that command need to be rewritten in any way to work right? Please let me know. Thanks in advance.