ocean script in batch mode

S

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 wrote, on 08/21/09 13:56:
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.
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.
 
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 ...
 
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.
 
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
 
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top