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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
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: Sat Oct 11 13:09:34 PDT 2025

Total time taken to generate the page: 0.80477 seconds