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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2017, 05:39
Default Run job when license free
  #1
Member
 
Join Date: Nov 2015
Posts: 57
Rep Power: 8
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 08:09.
taillanm is offline   Reply With Quote

Old   September 25, 2020, 05: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, 10:08
Default
  #3
Member
 
Join Date: Nov 2015
Posts: 57
Rep Power: 8
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 39 July 1, 2020 09:13
3D Windturbine simulation in SU2 k.vimalakanthan SU2 14 February 8, 2019 14:43
chtMultiRegionSimpleFoam: crash on parallel run student666 OpenFOAM Running, Solving & CFD 3 April 20, 2017 11:05
Radial jet with free surface using FIDAP Dr. Ahmed Hassaneen Main CFD Forum 0 October 28, 1999 13:20
cfd job Dr. Don I anyanwu Main CFD Forum 20 May 17, 1999 15:13


All times are GMT -4. The time now is 03:48.