CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Run job when license free

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2017, 06:39
Default Run job when license free
  #1
Member
 
Join Date: Nov 2015
Posts: 57
Rep Power: 11
taillanm is on a distinguished road
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

Last edited by taillanm; June 30, 2017 at 09:09.
taillanm is offline   Reply With Quote

Old   September 25, 2020, 06:35
Default
  #2
New Member
 
MK
Join Date: Apr 2017
Posts: 2
Rep Power: 0
MicKru is on a distinguished road
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.
MicKru is offline   Reply With Quote

Old   October 13, 2020, 11:08
Default
  #3
Member
 
Join Date: Nov 2015
Posts: 57
Rep Power: 11
taillanm is on a distinguished road
Quote:
Originally Posted by MicKru View Post
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
taillanm is offline   Reply With Quote

Reply

Tags
licenses, scripting


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 42 May 8, 2024 00:17
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 06:53
chtMultiRegionSimpleFoam: crash on parallel run student666 OpenFOAM Running, Solving & CFD 3 April 20, 2017 12:05
Radial jet with free surface using FIDAP Dr. Ahmed Hassaneen Main CFD Forum 0 October 28, 1999 14:20
cfd job Dr. Don I anyanwu Main CFD Forum 20 May 17, 1999 16:13


All times are GMT -4. The time now is 10:57.