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

Home » Public Forums » archive » set_plot, 'win/x'
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
set_plot, 'win/x' [message #28862] Sat, 12 January 2002 22:59 Go to next message
Glenn Newnham is currently offline  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 Go to previous message
Glenn Newnham is currently offline  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 Go to previous message
Stuart Settle is currently offline  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
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: load sharing on multiple machines?
Next Topic: Re: Responsible retail of "Herbal Highs"

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

Current Time: Wed Oct 08 17:58:49 PDT 2025

Total time taken to generate the page: 0.00628 seconds