Home > Community > Forums > Custom IC Design > Ocean from Unix prompt fails - not interactively

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Ocean from Unix prompt fails - not interactively 

Last post Thu, Dec 20 2012 3:32 AM by The Setlaz. 2 replies.
Started by The Setlaz 20 Dec 2012 02:35 AM. Topic has 2 replies and 638 views
Page 1 of 1 (3 items)
Sort Posts:
  • Thu, Dec 20 2012 2:35 AM

    • The Setlaz
    • Top 500 Contributor
    • Joined on Wed, Dec 5 2012
    • Saggart, Dublin
    • Posts 35
    • Points 500
    Ocean from Unix prompt fails - not interactively Reply

    Hi,

     

    I'm having a weird behavior from Ocean. I do have a small script (250 lines) that I run in batch from a Shell script with an output log, invoking the following command :

    ocean < my_script.ocn > ./my_log.log

    In my script, I have several printf that informs me of the script actions.

    Fact is,  using this shell command to invoke OCEAN gives me no error and none of my printf in the log file (despite I can see all the OCEAN loading etc. ) and no output file for results.

    If I comment, let's say, half of my script, everything is working fine.

     

    At the beginning, I just thought my script was failing at some point... but then I loaded my script in the OCEAN environment, and it works !

    Also, Andrew post on GoogleGroup that the following command allows to invoke Ocean from Unix shell

    ocean -restore oceanScript.ocn

    It opens OCEAN in the shell and load the script automatically like in an interactive mode.  And this works !

     

    So, why my shell script invoking OCEAN  with the following command :

    ocean < my_script.ocn > ./my_log.log

    just fails at some point without even the first printf in the log which is right after openResults() and selectResults() ?

    (like if the script itself was too big to be run ?!? )

     Program:  awd.exe version 5.1.0

     Sub version:  sub-version 5.10.41_USR5.90.69 (32-bit addresses)

     

    Thanks for your help :)

    Damien

    • Post Points: 20
  • Thu, Dec 20 2012 2:45 AM

    Re: Ocean from Unix prompt fails - not interactively Reply

    Damien,

    It's hard to tell - because the output would be buffered, the log file may not necessarily reflect the point that it really got up to (you could just run "ocean < my_script.ocn" without redirecting the output to see if that helps.

    However, I'd always recommend using -restore over redirecting the standard input to the "ocean" command.

    Regards,

    Andrew.

     

    • Post Points: 20
  • Thu, Dec 20 2012 3:32 AM

    • The Setlaz
    • Top 500 Contributor
    • Joined on Wed, Dec 5 2012
    • Saggart, Dublin
    • Posts 35
    • Points 500
    Re: Ocean from Unix prompt fails - not interactively Reply

     Hi Andrew,

     

    Thanks a lot for your quick response.

    Well, I now use the "ocean -restore" command with an "exit" statement at the end of my Ocean script and it works like a charm with the rest of the shell script !

    Thanks you.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by The Setlaz at 20 Dec 2012 02:35 AM. Topic has 2 replies.