//
// String commandLine = "openOfficeConvert.sh " + from + " " + to + " " + openOfficeServerPort;
//
// exec.runCommand(commandLine);
LinuxCommandMonitor execMonitor = new LinuxCommandMonitor(true);
execMonitor.setWorkingDirectory(workingDirectory);
String commandLine = workingDirectory + "/openOfficeConvertMonitor.sh " + execMonitor.getWorkingDirectory() + " /home/kulovits/dev/inputFile1.doc /home/kulovits/dev/outputFile2.pdf " + openOfficeServerPort;
execMonitor.monitor(commandLine);
ExecutionFootprintList taskPerformance = execMonitor.getTaskPerformance();
System.out.println("Average virtual memory usage: " + taskPerformance.getAverageVirtualMemory() + " kb");
System.out.println("Average shared memory usage: " + taskPerformance.getAverageSharedMemory() + " kb");
System.out.println("Average resident size: " + taskPerformance.getAverageResidentSize() + " kb");