How to invoke a form and then exit in batch mode

Hi,

I have a skill script named example.il that defines an appform.

Then I have the following commands:

load("example.il")
displayMyForm()  ;procedure that displays the form
; then perform some operation in the form
exit()  ;exit to terminal

If I run this commands one by one in the ocean environment, it works just fine.
However if I batch these commands into an ocean script file, say "example.ocn" and run the following command in terminal:

ocean -restore example.ocn

 Then the form will just pop up and get closed immediately before I can do any operation.

Could you please tell me how I can achieve this?

 

Thanks a lot.

Best,
hpan

CDNS Forum Thread CSS JS
CDNS - Fix Layout