comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: License options when starting IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: License options when starting IDL [message #33983] Tue, 11 February 2003 12:08
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Tue, 11 Feb 2003 10:58:06 -0700, Eric wrote:

> I have a machine with 6 node-locked licenses. On campus we have a
> floating license for 25 users. I would like to write (or borrow) a
> script to run on my machine with the node-locked license that will go
> out and grab one of the floating licenses, ONLY if all of its licenses
> are being used.
>
> Can anyone point me to documentation on how to get the status the number
> of IDL licenses in use when a user starts up IDL?
>
> Thanks!

Try:

/usr/local/rsi/idl/bin/lmstat -a | grep "Users of idl:"

You can use the environment variable LM_LICENSE_FILE to start IDL
using either the node-locked license file, or the floating license
file if no licenses are available, e.g. (untested):

#!/bin/bash
export LM_LICENSE_FILE="/path/to/license_node_locked.dat"
if [ $(/usr/local/rsi/idl/bin/lmstat -a |
sed -n "s/^.*idl: *(Total of \([0-9]\+\).*/\1/p") -eq 0 ]; then
export LM_LICENSE_FILE="/path/to/license_floating.dat";
fi
idl
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: drawing a single point in 3-D
Next Topic: missing a dimension in IDLgrVolume

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:09:59 PDT 2025

Total time taken to generate the page: 0.00527 seconds