Re: automatic system info tool?

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas DCP SD
Тема Re: automatic system info tool?
Дата
Msg-id E1539E0ED7043848906A8FF995BDA579012B4330@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: automatic system info tool?  (Steve Atkins <steve@blighty.com>)
Список pgsql-hackers
> >> 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 returns the os name, version,

> > hostname and system type.
> >
>
> GetVersionEx() will get you the windows version, service
> pack, etc IIRC.

in perl:

use POSIX;
print join(',',POSIX::uname()),"\n";

prints:
Windows NT,hostname.domain.com,5.0,Build 2195 (Service Pack 4),x86

Works on all Platforms.

(more detail on Win with: use Win32; join(' ', Win32::GetOSVersion()),
"\n";)

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tzahi Fadida
Дата:
Сообщение: missing tuplestore_gettuple
Следующее
От: Katsuhiko Okano
Дата:
Сообщение: CSStorm occurred again by postgreSQL8.2. (Re: poor performance with Context Switch Storm at TPC-W.)