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

Home » Public Forums » archive » Re: wait for an available license?
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: wait for an available license? [message #16482] Thu, 29 July 1999 00:00
Nando Iavarone is currently offline  Nando Iavarone
Messages: 48
Registered: December 1998
Member
<HTML>
Liam Gumley wrote:
<BLOCKQUOTE TYPE=CITE>Nando Iavarone wrote:
<BR>> Dear Liam,the startup file seems to be executed after the check on
the license,
<BR>> and I need to shadow the 'do you want to wait for...... (y/n)?' message
<BR>> to the user and exit automatically.

<P>You are absolutely correct. As far as I can tell after 20 minutes of
<BR>experimentation, there is no way to do this inside IDL.</BLOCKQUOTE>

<BLOCKQUOTE TYPE=CITE>(2) Check the FlexLM documentation at
<BR><A HREF="http://www.globetrotter.com/lmsupp.htm">http://www.globetrotter.com/lmsupp.htm</A>.
I looked at lmstat, but I
<BR>couldn't see how to check if all licenses were in use.</BLOCKQUOTE>
I think it's possible to use a shellscriptto execute the lmstat redirecting
the output and to search&nbsp; for the string
<BR>giving license available information and to do the appropriate action
(run IDL or exit).
<BR>But I think it's a piggy way.

<P>Have a good day.
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
Nando.
<PRE>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</PRE>
&nbsp;</HTML>
Re: wait for an available license? [message #16483 is a reply to message #16482] Thu, 29 July 1999 00:00 Go to previous message
Bruce Bowler is currently offline  Bruce Bowler
Messages: 128
Registered: September 1998
Senior Member
What I do, in a shell script...

while (`/usr/local/rsi/idl/bin/lmstat -A | grep nodelocked | wc -m`)
sleep 600
end
{run IDL}

This works on my machine with a single user, nodelocked license. You
may need to fiddle with the string you grep for to make it work in your
environment...

Bruce

Liam Gumley wrote:
>
> Nando Iavarone wrote:
>> Dear Liam,the startup file seems to be executed after the check on the license,
>> and I need to shadow the 'do you want to wait for...... (y/n)?' message
>> to the user and exit automatically.
>
> You are absolutely correct. As far as I can tell after 20 minutes of
> experimentation, there is no way to do this inside IDL. Suggestions:
>
> (1) Ask RSI (mailto:support@rsinc.com)
> (2) Check the FlexLM documentation at
> http://www.globetrotter.com/lmsupp.htm. I looked at lmstat, but I
> couldn't see how to check if all licenses were in use.
>
> Cheers,
> Liam.
>
> --
> Liam E. Gumley
> Space Science and Engineering Center, UW-Madison
> http://cimss.ssec.wisc.edu/~gumley

--

Bruce Bowler 207.633.9600 (voice)
Research Associate 207.633.9641 (fax)
Bigelow Laboratory for Ocean Sciences bbowler@bigelow.org
West Boothbay Harbor ME 04575 http://www.bigelow.org/
Re: wait for an available license? [message #16484 is a reply to message #16482] Thu, 29 July 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Nando Iavarone wrote:
> Dear Liam,the startup file seems to be executed after the check on the license,
> and I need to shadow the 'do you want to wait for...... (y/n)?' message
> to the user and exit automatically.

You are absolutely correct. As far as I can tell after 20 minutes of
experimentation, there is no way to do this inside IDL. Suggestions:

(1) Ask RSI (mailto:support@rsinc.com)
(2) Check the FlexLM documentation at
http://www.globetrotter.com/lmsupp.htm. I looked at lmstat, but I
couldn't see how to check if all licenses were in use.

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
Re: wait for an available license? [message #16485 is a reply to message #16482] Thu, 29 July 1999 00:00 Go to previous message
Nando Iavarone is currently offline  Nando Iavarone
Messages: 48
Registered: December 1998
Member
<HTML>
Liam Gumley wrote:
<BLOCKQUOTE TYPE=CITE>Nando Iavarone wrote:
<BR>> I don't want the message: 'do you want to wait for...... (y/n)?'.
<BR>&nbsp;
<BR>&nbsp;

<P>Then all you need in your starup file is

<P>if check_demo_mode() then exit</BLOCKQUOTE>
Dear Liam,the startup file seems to be executed after the check on the
license,
<BR>and I need to shadow the 'do you want to wait for...... (y/n)?' message
<BR>to the user and exit automatically.

<P>Any idea?
<BR>&nbsp;
<PRE>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</PRE>
&nbsp;</HTML>
Re: wait for an available license? [message #16492 is a reply to message #16482] Thu, 29 July 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Nando Iavarone wrote:
> I need a mechanism to automatically exit from IDL,
> and not enter in demo mode, if the license is unavailable.
> I don't want the message: 'do you want to wait for...... (y/n)?'.

The following function may help:

;---cut here---
FUNCTION CHECK_DEMO_MODE

;- Check for demo mode consistently in IDL versions 5.0, 5.1, 5.2
;- Returns TRUE if IDL is running in demo mode.

if float(!version.release) lt 5.1 then begin
return, demo_mode()
endif else begin
return, lmgr(/demo)
endelse

END
;---cut here---

Then all you need in your starup file is

if check_demo_mode() then exit

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: A line command for printing graphs.
Next Topic: saving a linked list to file ?

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

Current Time: Fri Oct 10 03:12:11 PDT 2025

Total time taken to generate the page: 0.00802 seconds