Andrew, Thanks for the quick reply. I am using ICAVD12.2-64b.78 and sorry for the typo for function getShellEnvVar . It's strange to notice that the implementation using "tee" as well as "redirection operator" is working for you. Although I will be using "lmstat -a" for few of my requirements, I think it would not be a good idea to implement it using ipcReadProcess(cid) calls as the data buffer generated from this will be quite large, that's why I wanted to dump the output to a file. I tried implementing this by calling a perl script through IPC. Perl script consists of a " system" function which executes the same 'tee' or the 'redirect' operator. Still it is not working. Regards, Jay Bharti
↧