• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. how to grep and print which only those output which selected...

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 143
  • Views 9267
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to grep and print which only those output which selected in combobox

saurabh96
saurabh96 over 4 years ago

Hello Guys,

i have a test-case...in which a combo box has multiple rules..say-

res_abc_1

cap_xyz_2

diode_kfb_3

mos_qwe_4

bjt_axd_5

Now when user runs above rules, chk.txt file creates. .where the output of these runs stored as-;;;;;;;;;;  chk.txt files will stores the old output for above rule status..inspite user has not selected that rule for run ;;;;;;;;;;;;;;;

res_abc_1- completed

cap_xyz_2- uncompleted

diode_kfb_3 -completed

mos_qwe_4-uncompleted

bjt_axd_5-uncompleted

i have tried this way--

rules_check = buildString(
foreach(mapcar entry form->rules->value
car(parseString(entry))
)
" "
)

if(system(strcat("grep -q '" "%s unsuccessful" "' " rules_check chk.txt))==0 then          ;;;;;;;;;;;;;;;;;;;;;;;am gettign error how to correct grep and print the rules which is unsuccessful .
hiDisplayAppDBox( ?name 'errorbox2 ?dboxBanner "ERROR" ?dboxText "Atleast one check is Unsuccessful...Please check file" ?buttonLayout 'Close ?buttons 'Cancel)
fprintf(errport "Atleast one check is Unsuccessful!...Please check file in pwd for details info with timestamps\n" )
)

My question is that if i select only rule5 and rule2 from combo box and that  rule selected is uncompleted in chk.txt file. .then it should print the message ..like "rules 2,5 are uncompleted"          ..it will look only for that rule which is selected by user in chk.txt file.

How to make that it will only look at rules in chk.txt file which is selected by user in comb box??

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information