Andrej Ricnik-Bay wrote:
On 7/18/06, Bort, Paul <[EMAIL PROTECTED]> wrote:
> Mind you, maybe perl provides emulation for uname?
Not that I know of.
Wouldn't $^0 and $Config{archname} cover quite a few, though?
No. As previously explained, these values reflect what was true when and
whe
> >> 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]
> >
> > How do you do this from a program though. Under UNIX uname() is a
> > function call as well as a program. It retu
On 7/18/06, Bort, Paul <[EMAIL PROTECTED]> wrote:
> Mind you, maybe perl provides emulation for uname?
Not that I know of.
Wouldn't $^0 and $Config{archname} cover quite a few, though?
---(end of broadcast)---
TIP 3: Have you checked our extens
>
> How do you do this from a program though. Under UNIX uname() is a
> function call as well as a program. It returns the os name, version,
> hostname and system type.
>
Multiple methods (TIMTOWTDI) depending on what you want:
my $verstring = `cmd.exe /c ver`;
# or
use Win32;
my ($string,
On Jul 17, 2006, at 12:57 PM, Martijn van Oosterhout wrote:
On Mon, Jul 17, 2006 at 11:06:50AM -0400, Bort, Paul wrote:
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]
How do you do this from a
On Mon, Jul 17, 2006 at 11:06:50AM -0400, Bort, Paul wrote:
> 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]
How do you do this from a program though. Under UNIX uname() is a
function call
>
> 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 nee
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 d
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.
On Sun, Jul 16, 2006 at 06:49:26PM -0400, Andrew Dunstan wrote:
> We also classify buildfarm machines by compiler_version> and config.guess doesn't give us that, unfortunately.
It would seem to be a lot easier to use the values from perl itself,
given you're already using it:
# perl -MConfig -e
-Original Message-
From: "Andrew Dunstan" <[EMAIL PROTECTED]>
To: "Peter Eisentraut" <[EMAIL PROTECTED]>
Cc: "pgsql-hackers@postgresql.org"
Sent: 16/07/06 23:50
Subject: Re: [HACKERS] automatic system info tool?
> We also classify
Peter Eisentraut wrote:
Andrew Dunstan wrote:
Someone at the conference mentioned a tool that would portably and
reliably report system info such as architecture.
What's wrong with config.guess?
That will probably be OK for architecture.
We also classify buildfarm machines b
Andrew Dunstan wrote:
> Someone at the conference mentioned a tool that would portably and
> reliably report system info such as architecture.
What's wrong with config.guess?
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
---(end of broadcast)--
Andrew,
> Someone at the conference mentioned a tool that would portably and
> reliably report system info such as architecture. If someone has details
> I would like to have them, as it would help solve the buildfarm
> personality problem properly.
There's potentially two, actually. A SF start
Someone at the conference mentioned a tool that would portably and
reliably report system info such as architecture. If someone has details
I would like to have them, as it would help solve the buildfarm
personality problem properly.
cheers
andrew
---(end of broadcast
15 matches
Mail list logo