CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Run job when license free (https://www.cfd-online.com/Forums/star-ccm/189911-run-job-when-license-free.html)

taillanm June 30, 2017 05:39

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

MicKru September 25, 2020 05:35

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.

taillanm October 13, 2020 10:08

Quote:

Originally Posted by MicKru (Post 783711)
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.


Thanks, works perfectly


All times are GMT -4. The time now is 17:45.