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

From Martijn van Oosterhout
Subject Re: automatic system info tool?
Date
Msg-id 20060717141616.GC30221@svana.org
Whole thread Raw
In response to Re: automatic system info tool?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: automatic system info tool?  ("Bort, Paul" <pbort@tmwsystems.com>)
List pgsql-hackers
On Mon, Jul 17, 2006 at 09:06:34AM -0400, Andrew Dunstan wrote:
>
> I'm fairly familiar with it :-)
>
> The trouble is that it gives info set at the time perl was compiled,
> which doesn't help with the problem where a machine has been upgraded.
> For example, on this FC3 machine it reports a different kernel version
> from the one I have upgraded to, not surprisingly.

Hmm. The osname and archname might still be useful, but the rest could
be out of date.

> So what I need if possible is a runtime tool to detect the info we need.

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?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: plPHP and plRuby
Next
From: "Joshua D. Drake"
Date:
Subject: Re: plPHP and plRuby