Re: automatic system info tool? - Mailing list pgsql-hackers

From Bort, Paul
Subject Re: automatic system info tool?
Date
Msg-id DB106B1B5B8F734B8FF3E155A3A556C202D4FD03@clemail1.tmwsystems.com
Whole thread Raw
In response to Re: automatic system info tool?  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: automatic system info tool?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
>
> On UNIX systems uname may work pretty well. But I guess each
> system may
> have slightly different options. What'll probably happen is that you
> end up with a big if() statement testing $Config{osname} wtih
> each case
> having specific code to determine the specifics. But for that you need
> information. How do you get the currently running release of windows
> for example?
>

If you can open a command shell you can get the OS version with the
'ver' command under Windows:

C:\>ver

Microsoft Windows XP [Version 5.1.2600]

C:\>

This should work on 2000 or later. (Windows 2000 is 5.0.something.)

Regards,
Paul


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: plPHP and plRuby
Next
From: Peter Eisentraut
Date:
Subject: Re: plPHP and plRuby