ocean script in batch mode

Discussion in 'Cadence' started by Sabyasachi, Aug 21, 2009.

  1. Sabyasachi

    Sabyasachi Guest

    I am using ocean scripts in interactive mode.Can it be used in batch
    mode. I want to mean that can i run a shell script so that i can run
    say 10 ocean script sequencially without any user intervention.

    I have writtten one shell script but it is not working

    #!/bin/sh

    ocean
    load"/home/sabyasachi/Desktop/DC_CORNER_MODEL/ocn/pmos/tt.ocn"

    exit

    it is opening ocean in interactive mode and i have to give commands
    manually.
     
    Sabyasachi, Aug 21, 2009
    #1
  2. Sabyasachi

    Riad KACED Guest

    Dear you,

    Try one of these
    UNIX> cat myOceanScript.ocn | ocean
    UNIX> ocean < myOceanScript.ocn > myOceanScript.log

    Regards,
    Riad.

    .... still wondering what makes it so hard for people not to start
    their post by 'Hi', 'Hello' or any other form of politeness, no
    matters in what language.
    .... still wondering what makes it so hard for people not to end their
    post by 'Cheers', 'Thanks' or any other form of politeness, no matters
    in what language.
    Apologies for the above, I couldn't resist this time ...
     
    Riad KACED, Aug 21, 2009
    #2
  3. Sabyasachi wrote, on 08/21/09 13:56:
    The best thing to do is:

    ocean -restore /home/sabyasachi/Desktop/DC_CORNER_MODEL/ocn/pmos/tt.ocn

    include exit() as the last line in tt.ocn.

    Regards,

    Andrew.
     
    Andrew Beckett, Aug 21, 2009
    #3
  4. Sabyasachi

    Riad KACED Guest

    Hi Andrew,

    For some reason, I always thought the -restore would keep the ocean
    session alive, never thought the 'exit' would actually force it to
    quit ...
    That's one more thing learnt this week !
    Thank you very much !

    Cheers,
    Riad.
     
    Riad KACED, Aug 21, 2009
    #4
  5. Sabyasachi

    Sabyasachi Guest

    Hi everybody,
    I am sorry for not addressing properly.It will be a lame excuse but
    still I am writing it.
    My mother tongue is not English. English is my second language. And I
    am not acustomed with english culture.We often use hi hello i our
    conversation. Sorry if anyone is hurt by my improper addressing.From
    now on I will be careful.

    Thanks for your suggestion.

    Cheers
    Sabyasachi
     
    Sabyasachi, Aug 22, 2009
    #5
  6. Sabyasachi

    Riad KACED Guest

    Dear Sabyasachi,

    Please do not take any offence, nothing personal.
    I'll be happy contributing to any of your questions in the future,
    just to prove there is no problem at all.
    Besides, don't worry, I'm a foreigner too, I'm speaking English a 4th
    language I'm afraid :-(
    Again, I do apologies for my harsh comments :-(

    Regards,
    Riad.
     
    Riad KACED, Aug 23, 2009
    #6
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.