set_plot, 'win/x' [message #28862] |
Sat, 12 January 2002 22:59  |
Glenn Newnham
Messages: 6 Registered: March 2001
|
Junior Member |
|
|
I want an application to run on windows or UNIX/LINUX so I want to be
able to automatically select between the commands
set_plot, 'win'
and
set_plot, 'x'
Is there a way detect what platform a program is running on?
Thanks,
Glenn
|
|
|
Re: set_plot, 'win/x' [message #28912 is a reply to message #28862] |
Wed, 16 January 2002 14:49  |
Glenn Newnham
Messages: 6 Registered: March 2001
|
Junior Member |
|
|
Excellent, the !VERSION structure did the job nicely.
Cheers,
Glenn
Glenn Newnham wrote:
>
> I want an application to run on windows or UNIX/LINUX so I want to be
> able to automatically select between the commands
>
> set_plot, 'win'
> and
> set_plot, 'x'
>
> Is there a way detect what platform a program is running on?
>
> Thanks,
> Glenn
|
|
|
Re: set_plot, 'win/x' [message #28917 is a reply to message #28862] |
Wed, 16 January 2002 07:35  |
Stuart Settle
Messages: 3 Registered: October 1997
|
Junior Member |
|
|
"S. Settle" <settlest@pilot.msu.edu> wrote in message news:...
> Glenn,
>
> You may wish to try the following:
>
> IDL>print, !Version.OS_Family
>
> This should give you the generic name of the operating system.
>
> "Glenn Newnham" <glenn.newnham@adelaide.edu.au> wrote in message
> news:3C41304F.2D01FAB4@adelaide.edu.au...
>> I want an application to run on windows or UNIX/LINUX so I want to be
>> able to automatically select between the commands
>>
>> set_plot, 'win'
>> and
>> set_plot, 'x'
>>
>> Is there a way detect what platform a program is running on?
>>
>> Thanks,
>> Glenn
>
>
|
|
|