Hi,
I have a process that has a few Exec that some moving of files around and running a tool before the real work of the Process starts. But they don't seem to work and I cannot see why not. So what would be useful for general debugging is to log some of the output of the statements
So I have a Exec with Java code like this:
if(System.getProperty("os.name").equals("Linux")) {
Runtime.getRuntime().exec("cat ./vendor_files/req/hdr ./vendor_files/req/request ./vendor_files/req/footer > ./vendor_files/req/e_desc.req");
} else if(System.getProperty("os.name").indexOf("Windows") = 0) {
Runtime.getRuntime().exec("copy C:/vendor_files/req/hdr + C:/vendor_files/req/request + C:/vendor_files/req/footer C:/vendor_files/req/e_desc.req");
}
I'd like to have a log service task that logs the output from System.getProperty("os.name") and
Runtime.getRuntime().exec("cat ./vendor_files/req/hdr ./vendor_files/req/request ./vendor_files/req/footer > ./vendor_files/req/e_desc.req");
To see if they work as expected. I see I could run these in the On-entry action, but how to assign to a parameter from here? Also where does thisLog service task log things to?
Thx.
Ed