• 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 Design
  3. Ocean from Unix prompt fails - not interactively

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 1227
  • 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

Ocean from Unix prompt fails - not interactively

The Setlaz
The Setlaz over 12 years ago

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

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    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.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • The Setlaz
    The Setlaz over 12 years ago

     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.

    • 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