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

M

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
 
Set env as below will do
ddserv showWhatsNew string "none"


On Nov 25, 5:39 pm, Marcel Preda <marcel.pr...@gmail.com> wrote:
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
 
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

On Nov 29, 4:10 am, "KB.How" <kianboon....@gmail.com> wrote:
Set env as below will do
ddserv showWhatsNew string "none"

On Nov 25, 5:39 pm, Marcel Preda <marcel.pr...@gmail.com> wrote:

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 wrote, on 11/29/10 07:35:
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
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.
 
On Nov 29, 1:08 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Marcel Preda wrote, on 11/29/10 07:35:



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

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.
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 wrote, on 11/29/10 12:21:
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
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.
 
Marcel Preda wrote, on 11/29/10 14:11:
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
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
Senior Solution Architect - Cadence Design Systems Ltd (UK)
 
On Nov 29, 3:21 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Marcel Preda wrote, on 11/29/10 12:21:

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

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.
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
 
On Nov 29, 6:36 am, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Marcel Preda wrote, on 11/29/10 14:11:

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.

-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).
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top