Hi,
I'd like to assign a shell command (sh or csh) output to an OCEAN variable but the problem is that Shell always return "t" and nothing else.
I would need to be able to get the results of a "pwd | cut -d "/" -f 8" command (that returns the name of my testbench which is the same as my testbench-cellview) where my script is loaded from, and put the results of this command in an OCEAN variable so that I can paste the name to the right directory to open all my result in batch.
My script would look like this :
----------------------------
newWindow()
corner_list='("corner_1" "corner_2" "corner_3")
simDir = "/home/my_name/path/to/all/testbench/"
testbench = sh("pwd | cut -d "/" -f 8")
foreach(corner corner_list)
openResults( strcat( simDir "/" testbench "/" corner ) )
selectResults( 'tran )
)
-------------------------
This script would be automatically load all my corner PSF results in Cadence Results Browser for "familly plot" without editing the script to change the testbench name inside before running it.
Thanks !
Damien