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

Home » Public Forums » archive » Re: Unique system identified?
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: Unique system identified? [message #41160] Tue, 28 September 2004 08:54
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Sat, 25 Sep 2004 22:14:33 +0000, Jonathan Greenberg wrote:

> I'm trying to develop a distributed processing framework for IDL, and I was
> wondering, is there any way in IDL to figure out the computer name for the
> local system or, barring that, the IP address or some unique identified for
> that hardware? Thanks!

void=lmgr(LMHOSTID=lmh)
print,lmh

you could also use the license number:

void=lmgr(INSTALL_NUM=in)
print,in

Or some failover combination of both if you want to be robust.

JD
Re: Unique system identified? [message #41185 is a reply to message #41160] Sat, 25 September 2004 15:27 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Jonathan Greenberg" <greenberg@ucdavis.edu> wrote in message news:BD7B3BD7.12DA0%greenberg@ucdavis.edu...
> I'm trying to develop a distributed processing framework for IDL, and I was
> wondering, is there any way in IDL to figure out the computer name for the
> local system or, barring that, the IP address or some unique identified for
> that hardware? Thanks!
>
> --j
>


something like the following:

cn = '*notaname*'
CASE !VERSION.OS_FAMILY OF
'MacOS' : message,' MacOS not currenlty supported.'
'vms' : message,' VMS not currently supported.'
'unix' : cn = getenv('HOST')
'Windows' : cn = getenv('computername')
ELSE : message,!VERSION.OS_FAMILY+' OS not recognized.'
ENDCASE


Cheers,
bob
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How color my wind vectors?
Next Topic: Re: Faster way ?

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

Current Time: Wed Dec 03 07:40:12 PST 2025

Total time taken to generate the page: 2.48803 seconds