EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

How to pass skill vars to shell

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Cadence - How to pass skill vars to shell


Guest

Thu Feb 10, 2011 7:01 am   



I am writing a skill code in which I am defining some variables

; skill var definitions
defvar(cell_name myMaster~>cell~>name)
defvar(cell_lib myMaster~>lib~>name)
defvar(cell_view "schematic")


Now, I want to pass the variable to a shell command
sh("icmp4 filelog cell_lib/cell_name/cell_view/sch.cdb")

The question is ----> How to make shell recognize the skill variable.

Is there a way to export skill vars to shell env ?
I searched the posts found some reference to sprintf But its not clear
how.
Also, is it possible to do it by writing-to & reading-from a file?


In case you guys have some idea, Pl. let me know how to do so.


Thanks & Regards
-Piyush


Guest

Thu Feb 10, 2011 11:19 am   



On Feb 10, 10:01 am, piyush_...@yahoo.com wrote:
Quote:
I am writing a skill code in which I am defining some variables

; skill var definitions
defvar(cell_name myMaster~>cell~>name)
defvar(cell_lib  myMaster~>lib~>name)
defvar(cell_view "schematic")

Now, I want to pass the variable to a shell command
sh("icmp4 filelog cell_lib/cell_name/cell_view/sch.cdb")

The question is ----> How to make shell recognize the skill variable.

Is there a way to export skill vars to shell env ?
I searched the posts found some reference to sprintf But its not clear
how.
Also, is it possible to do it by writing-to & reading-from a file?

In case you guys have some idea, Pl. let me know how to do so.

Thanks & Regards
-Piyush


:: Found following workaround(sprintf) ::

~~~~~~~~~~~~~
sh("touch ./rev.log")

sprintf(cmd "icmp4 filelog %s/%s/%s/sch.cdb >> ./rev.log"
cell_lib,cell_name,cell_view)
println(cmd)
sh(cmd)
~~~~~~~~~~~~~

So issue is resolved



* This question thread may be closed

elektroda.net NewsGroups Forum Index - Cadence - How to pass skill vars to shell

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony