Re: wait for an available license? [message #16482] |
Thu, 29 July 1999 00:00 |
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 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>
Nando.
<PRE>--
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040 Frascati - RM
Tel: +39-6-944091 (switchboard)
9440968 (direct)
E-mail:
f.iavarone@acsys.it
FrdndVrn@altavista.net</PRE>
</HTML>
|
|
|
Re: wait for an available license? [message #16483 is a reply to message #16482] |
Thu, 29 July 1999 00:00  |
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  |
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  |
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>
<BR>
<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>
<PRE>--
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040 Frascati - RM
Tel: +39-6-944091 (switchboard)
9440968 (direct)
E-mail:
f.iavarone@acsys.it
FrdndVrn@altavista.net</PRE>
</HTML>
|
|
|
Re: wait for an available license? [message #16492 is a reply to message #16482] |
Thu, 29 July 1999 00:00  |
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
|
|
|