D
danmc
Guest
Hi,
I've had problems where I have some scripts which run a whole bunch of
simulations will fail if I lose the connection to my license server.
To try and make the sims be more robust I wanted to do something like:
while( ! simulator()
simulator('spectre)
when( ! simulator()
printf("Failed. Waiting and trying again...\n") drain(poport)
sleep(60)
)
)
I even thought about wrapping this up in a function which I could use
in many of my scripts.
The problem I ran into is that when the simulator('spectre) bit fails,
it seems to totally trash the program flow. In other words, the
when(... stuff never even runs.
So, anyone have a suggestion on how to deal with this? I hate it when
I come in to work in the morning to find that my scripts died an hour
after I left the previous day.
Thanks
-Dan
I've had problems where I have some scripts which run a whole bunch of
simulations will fail if I lose the connection to my license server.
To try and make the sims be more robust I wanted to do something like:
while( ! simulator()
simulator('spectre)
when( ! simulator()
printf("Failed. Waiting and trying again...\n") drain(poport)
sleep(60)
)
)
I even thought about wrapping this up in a function which I could use
in many of my scripts.
The problem I ran into is that when the simulator('spectre) bit fails,
it seems to totally trash the program flow. In other words, the
when(... stuff never even runs.
So, anyone have a suggestion on how to deal with this? I hate it when
I come in to work in the morning to find that my scripts died an hour
after I left the previous day.
Thanks
-Dan