icfb -nograph -reply myscript.il , generate ddserv status -111

Discussion in 'Cadence' started by Marcel Preda, Nov 25, 2010.

  1. Marcel Preda

    Marcel Preda Guest

    Hi all,

    I'm running a script with
    icfb -nograph -reply myscript.il

    The script seems to work OK, but at the end in the CDS.log file I get
    a message:
    "(ddserv) library browser exited with status: -111"

    Is there any way to turn this message off ? (I dislike exit codes !=
    0 )

    Can this be related to tha fact that in .cdsenv I have a line
    ddserv showWhatsNew string "5.1"
    If yes, how can I turn it off, dinamically in my skill script ?

    Thank you,
    Marcel
     
    Marcel Preda, Nov 25, 2010
    #1
  2. Marcel Preda

    KB.How Guest

    Set env as below will do
    ddserv showWhatsNew string "none"
     
    KB.How, Nov 29, 2010
    #2
  3. Marcel Preda

    Marcel Preda Guest

    Thank you for the hit.

    As I said in 1st email, I would like to turn the warning off
    dynamically, from the skill script.
    The scripts will be run by other users too, and I can not ask all of
    them to modify the .cdsenv file.
    Also, the .cdsenv file can be modified by CAD/IT team.

    I was trying
    envSetVal("ddserv" "showWhatsNew" 'string "none")
    at the begining of the script, but it does not work - I still get
    "(ddserv) library browser exited with status: -111".


    BR,
    Marcel
     
    Marcel Preda, Nov 29, 2010
    #3
  4. Marcel Preda wrote, on 11/29/10 07:35:
    Hi Marcel,

    Rather than using the -replay argument, try adding a call to exit() at the end
    of your myscript.il and then do:

    icfb -nograph -restore myscript.il

    I'm not sure this will work, but my guess is that it might exit more cleanly.
    Note, I've not checked to see if I can reproduce this.

    Regards,

    Andrew.
     
    Andrew Beckett, Nov 29, 2010
    #4
  5. Marcel Preda

    Marcel Preda Guest

    Hi Andrew,

    We already have exit(0).
    Because we need an exit !=0 when something is not as expected.

    Even with this exit(0), the last lines in CDS.log are:
    ~~~~~~~~~
    \i exit(0)
    \o
    \o (ddserv) library browser exited with status: -111
    ~~~~~~~~~~~~

    BR,
    Marcel
     
    Marcel Preda, Nov 29, 2010
    #5
  6. Marcel Preda wrote, on 11/29/10 12:21:
    Hi Marcel,

    I see the problem if I use "icfb -nograph -replay file" but if I use "-restore"
    instead of "-replay" I don't see the issue.

    Regards,

    Andrew.
     
    Andrew Beckett, Nov 29, 2010
    #6
  7. Marcel Preda

    Marcel Preda Guest

    Hi Andrew,

    It works with restore (no -111 exit code).
    thank you.

    Seems that the results are the same, except that restore sends all the
    messages also to STDIN, not only to CDS.log .

    Where I can find the detailed difference between -restore and -reply ?

    All that I was able to find is:
    ~~~~~~~~~
    -replay fileName Executes a SKILL file (fileName).
    -restore fileName Restores a saved session from fileName.
    ~~~~~~~~~~~~~~
    An those does not tell me too much.

    BR,
    Marcel
     
    Marcel Preda, Nov 29, 2010
    #7
  8. Marcel Preda wrote, on 11/29/10 14:11:
    Hi Marcel,

    -replay is primarily intended for replaying CDS.log files. So it will use the
    tags at the beginning of each line to determine which statements will be replayed.

    -restore is primarily intended for recovering a session saved with Options->Save
    Session in the CIW. However, it's similar to doing a load("/path/to/file") after
    loading (sort of).

    Not sure I can tell you much more than that, except I always tend to use
    -restore for preference.

    Regards,

    Andrew.
     
    Andrew Beckett, Nov 29, 2010
    #8
  9. Marcel Preda

    Pete Z. Guest

    As Andrew said, -replay is intended for replaying CDS.log files, where
    -restore simply does a load of the file (so you cannot use -restore
    for CDS.log files). Another difference is that -nograph combined with
    -replay will automatically exit at the end of the replay file and the
    replay commands and responses will not be output to stdout. If you
    use -restore with a file that doesn't end in an exit command, even in -
    nograph mode the session will become an interactive session at the end
    of the restore file.

    There is nothing inherent in those two options that would cause the
    ddserv exit message to be output with one and not the other, so it is
    either some difference in the ddserv code or the library manager that
    causes the output.

    -Pete Z.
     
    Pete Z., Nov 30, 2010
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.