Run job when license free
Hello,
I would like to write a script that checks the licenses used for StarCCM and as soon as one frees up, open a .sim file and launch a macro for example. At the moment I only have an alias to check the licenses in use. On the steve portal they mention some environment variable called starwait but didn't put an example of how to use it. Does someone have more experience with this? Thanks, Max |
You can simply set environment variable. For example in bash:
export STARWAIT=1 It ensures that if you run starCCM application and there is no license, then the app waits until one is free. So you do not need to write any script. Status of a request on a lic server side is QUEUED when waiting for a free license. |
Quote:
Thanks, works perfectly |
All times are GMT -4. The time now is 17:45. |