Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 62730

Forum Post: RE: SKILL function to output the result from lmstat command

$
0
0
Hi Andrew, I have a similar requirement as mentioned by tyanata. The only difference is that I want to store the output of lmstat command in a file for further processing. Following is the code snippet that I wrote : wa_path=geGetShellEnvVar("workarea") ; Variable workarea is defined in .cshrc to my workarea path cmdStr=strcat("lmstat -s | tee " wa_path "/licenseLog.txt") cid=ipcBeginProcess(cmdStr) ipcWait(cid) Once, I execute these lines, I get an empty file "licenseLog.txt" in my workarea. If I execute the "lmstat -s | tee licenseLog.txt" in terminal, it works like a breeze. I tried implementing this with the redirection operator as well but no luck. The same command in terminal works! cmdStr=strcat("lmstat -s > " wa_path "/licenseLog.txt") Can you please tell me what could be the potential issue with the script. Is it with the use of IPC commands? Regards, Jay

Viewing all articles
Browse latest Browse all 62730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>