Due to the limitation, I want to start a simulation at night, I try to use ocean script to do that.
There is a parameter startTime in run(), But I try several time to use run(?startTime "hour:minute"), it does not
work, simulation starts immediately. Can someone tell me how to do that?
If run(?startTime xx:xx) does not work, what is the command in ocean to ask cadence hold for a while, for
example, 1 minute, 10 minute, so I can get the current time every 1 /10 minute to compare with the time I
want to start simulation.
Have you considered trying "hiRegTimer" ? It has two arguments, the first is a string of what you want to execute (so be careful, any string quotes in the function call would need to be escaped in this string argument to hiRegTimer) and the second argument is the delay before running the function, in 10ths of a second (e.g. 6000 would be 10 minutes). I have not tried this out for Ocean scripts.
Registers a SKILL function string that is executed after the specified time.
Hope this helps,
I think you should set up a cronjob and let the operating system handle it.
In reply to Marc Heise:
You can use run(?startTime "13:25") for example, but only when you're running in distributed mode. It doesn't work for local simulations.
So if I have set up distributed processing (e.g. with LSF or SGE), and have hostMode('distributed) in the script, then ?startTime works fine (I just tried it).