Send Skill command to CIW and get results back?

Guest
Hello All,

I would like to send skill expressions from my perl script to CIW
and get the results back. For example, i would like to get all
libraries (ddGetLibList() command) in my Cadence session and get the
skill list that i can use in my Perl script.

I can have CIW initiate a ipcSkillProcess but I want Perl script to
initiate the command.

Does anyone know how to do that? Any help would be appreciated.

Thanks
 
Hi Asif,

As what my understanding, you are trying to get the return value of
CIW from perl script, so that you are able to grab the data/
information.

You can have a try on this (my answer in shell script):

a. In your shell script, create a temporary file
TmpFile="/tmp/SkillCode.txt"
TmpOut="/tmp/CiwOut.txt"

b. Then write the skill command into the temporary file
echo "system(sprintf(nil \"echo %L > %s\" ddGetLibList() \
$TmpOut\" ))" >> $TmpFile
echo "exit()" >> $TmpFIle

c. Invoke virtuoso nograph in shell script to get the return
virtuoso -nograph -replay $TmpFile > /dev/null

d. Get the result from TmpOut file
LibList=`head -1 $TmpOut`

Hoping this helps. =D


Regards,
How
 
KB.How wrote, on 05/22/09 01:33:
Hi Asif,

As what my understanding, you are trying to get the return value of
CIW from perl script, so that you are able to grab the data/
information.

You can have a try on this (my answer in shell script):

a. In your shell script, create a temporary file
TmpFile="/tmp/SkillCode.txt"
TmpOut="/tmp/CiwOut.txt"

b. Then write the skill command into the temporary file
echo "system(sprintf(nil \"echo %L > %s\" ddGetLibList() \
$TmpOut\" ))" >> $TmpFile
echo "exit()" >> $TmpFIle

c. Invoke virtuoso nograph in shell script to get the return
virtuoso -nograph -replay $TmpFile > /dev/null

d. Get the result from TmpOut file
LibList=`head -1 $TmpOut`

Hoping this helps. =D


Regards,
How
I also posted (some time ago) a Tcl example of doing something like this:

http://tinyurl.com/ooksnd

This post mentions a slight typo in the original:

http://tinyurl.com/p2kafs

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top