Re: [HACKERS] automatic system info tool?

2006-07-18 Thread Andrew Dunstan
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

Re: [HACKERS] automatic system info tool?

2006-07-18 Thread Zeugswetter Andreas DCP SD
> >> 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

Re: [HACKERS] automatic system info tool?

2006-07-18 Thread Andrej Ricnik-Bay
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

Re: [HACKERS] automatic system info tool?

2006-07-17 Thread Bort, Paul
> > 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,

Re: [HACKERS] automatic system info tool?

2006-07-17 Thread Steve Atkins
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

Re: [HACKERS] automatic system info tool?

2006-07-17 Thread Martijn van Oosterhout
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

Re: [HACKERS] automatic system info tool?

2006-07-17 Thread Bort, Paul
> > 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

Re: [HACKERS] automatic system info tool?

2006-07-17 Thread Martijn van Oosterhout
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

Re: [HACKERS] automatic system info tool?

2006-07-17 Thread Andrew Dunstan
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.

Re: [HACKERS] automatic system info tool?

2006-07-17 Thread Martijn van Oosterhout
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

Re: [HACKERS] automatic system info tool?

2006-07-16 Thread Dave Page
-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

Re: [HACKERS] automatic system info tool?

2006-07-16 Thread Andrew Dunstan
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

Re: [HACKERS] automatic system info tool?

2006-07-15 Thread Peter Eisentraut
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)--

Re: [HACKERS] automatic system info tool?

2006-07-15 Thread Josh Berkus
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

[HACKERS] automatic system info tool?

2006-07-15 Thread Andrew Dunstan
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