Which Operating System Am I On? [message #3557] |
Thu, 23 February 1995 14:00  |
patterso
Messages: 36 Registered: February 1995
|
Member |
|
|
I am writing a tool that needs to work on a variety of operating Systems
(e.g. Unix, OSF/1, Ultrix, VMS, etc.). If I can find out through IDL
which system I am on, I could use some IF structures to chose when I have
machine specific commands to perform (like SPAWNS). Is there any way to
get this information. None of the system varaibles seem to store it?
Thanks
Tim Patterson
Dept. of Radiophysics and Space Research
Cornell
|
|
|
Re: Which Operating System Am I On? [message #3747 is a reply to message #3557] |
Fri, 24 February 1995 15:01  |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <3ij0iq$998@newsstand.cit.cornell.edu>, patterso@astrosun.tn.cornell.edu (Tim Patterson) writes:
> I am writing a tool that needs to work on a variety of operating Systems
> (e.g. Unix, OSF/1, Ultrix, VMS, etc.). If I can find out through IDL
> which system I am on, I could use some IF structures to chose when I have
> machine specific commands to perform (like SPAWNS). Is there any way to
> get this information. None of the system varaibles seem to store it?
>
Use the system variable !VERSION
IDL> help, /structure, !VERSION
** Structure !VERSION, 3 tags, length=24:
ARCH STRING 'alpha'
OS STRING 'vms'
RELEASE STRING '3.6.1a'
____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
|
|
|