| Re: Unique system identified? [message #41160] |
Tue, 28 September 2004 08:54 |
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  |
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
|
|
|
|