• 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. 'system' command to open web browser url anchor

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 2251
  • 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

'system' command to open web browser url anchor

caver456
caver456 over 6 years ago

The pound sign (nobody calls it that anymore...) does not seem to translate well from a skill system command to a web browser URL.   I'd like to open a browser to a URL with an anchor:

system("/usr/bin/firefox file:///net/gra-filer/win/GVLayoutDocs/goodies.htm#arrayGen")

results in the attached screenshot where the # is converted to %23 in the URL (but not in the File not found page...) - If I replace %23 with # in the URL it loads to the correct anchor as expected .  How can I preserve the pound sign?

  • Cancel
Parents
  • RiadKaced
    RiadKaced over 6 years ago

    Hi Caver,

    This is not a SKILL issue, if you try your command from a Linux terminal then you would run into the same problem as well. Therefore this has to do with your system/browser setup. Here are some commands that I just run on my Linux terminal and CIW as examples, you can try them at your end (I can't run your commands as I don't have your files). Update the Virtuoso paths blow to yours. The interesting matter is, in HTML, the "#" is encoded as "%23" and that should be a valid thing, I'm not sure why Firefox does not handle it as documented. Also, I would advise for you to copy the code snippets from here as the Cadence editor messes up with URl ..etc.

    Linux> firefox $CDSHOME/doc/sklanguser/chap8.html#10794
    >> file:///tools/eda/cadence/virtuoso/IC618.050/doc/sklanguser/chap8.html%2310794 NOT FOUND
    Linux> firefox file:///tools/eda/cadence/virtuoso/IC618.050/doc/sklanguser/chap8.html#10794
    >> file:///tools/eda/cadence/virtuoso/IC618.050/doc/sklanguser/chap8.html#10794 Displayed properly
    
    CIW> system("firefox en.wikipedia.org/.../Percent-encoding &")
    >> "#" was preserved and URL Worked fine
    CIW> system("firefox $HOME/doc/sklanguser/chap8.html#10794 &")
    >> "#" sign converted to "%23"
    CIW> system(sprintf(nil "firefox %s &" sprintf(nil "file://%s/doc/sklanguser/chap8.html#10794" simplifyFilename("$CDSHOME"))))
    >> "#" was preserved and URL Worked fine

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • RiadKaced
    RiadKaced over 6 years ago

    Hi Caver,

    This is not a SKILL issue, if you try your command from a Linux terminal then you would run into the same problem as well. Therefore this has to do with your system/browser setup. Here are some commands that I just run on my Linux terminal and CIW as examples, you can try them at your end (I can't run your commands as I don't have your files). Update the Virtuoso paths blow to yours. The interesting matter is, in HTML, the "#" is encoded as "%23" and that should be a valid thing, I'm not sure why Firefox does not handle it as documented. Also, I would advise for you to copy the code snippets from here as the Cadence editor messes up with URl ..etc.

    Linux> firefox $CDSHOME/doc/sklanguser/chap8.html#10794
    >> file:///tools/eda/cadence/virtuoso/IC618.050/doc/sklanguser/chap8.html%2310794 NOT FOUND
    Linux> firefox file:///tools/eda/cadence/virtuoso/IC618.050/doc/sklanguser/chap8.html#10794
    >> file:///tools/eda/cadence/virtuoso/IC618.050/doc/sklanguser/chap8.html#10794 Displayed properly
    
    CIW> system("firefox en.wikipedia.org/.../Percent-encoding &")
    >> "#" was preserved and URL Worked fine
    CIW> system("firefox $HOME/doc/sklanguser/chap8.html#10794 &")
    >> "#" sign converted to "%23"
    CIW> system(sprintf(nil "firefox %s &" sprintf(nil "file://%s/doc/sklanguser/chap8.html#10794" simplifyFilename("$CDSHOME"))))
    >> "#" was preserved and URL Worked fine

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • caver456
    caver456 over 6 years ago in reply to RiadKaced

    thanks for pointing out that this is not a Cadence issue, this was a strange one but I think it is resolved.

    • Cancel
    • Vote Up 0 Vote Down
    • 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