Re: What is more detailled than $^O ?



In article <g69k6281bu6.fsf@xxxxxxxxxxxx>, tzz@xxxxxxxxxxxx says...
In non-Perl terms, this information is often in /etc. The file
/etc/issue in particular is often useful.

It's almost always better to test for tools and features than
distributions anyhow. If you need package X, don't assume it's
installed, check. For a web server, Apache for example, there's tools
to tell you the version and compiled-in or loaded features. Perl
can't solve this problem in general terms AFAIK.


Yes, but I don't want to test what feature is available or not. The fact
is that some of the Perl CGI scripts we spread in our intranet and
extranet have to proceed with reports from proprietaries logs in
different trees depending of the specific linux distribution (actually :
Ubuntu, Debian, Red Hat Ent, Fedora and Suse, but more in future).

Also, some of these logs may have different signification depending of
the current distribution (so, we can't simply check for file presence
and deduct it's this or this distribution).

And, to facilitate the stuff, some of the servers may change from time
to time (I mean, change of linux ditribution from multi-boot or raw
change) and every admin has choice to keep of strip-out some parts of
the logs tree I told about ; this without notice, so I can't maintain a
simple database saying server #1 is under Debian, server #2 is under
Fedora, etc.

Well, because of this specific context, I have to determinate what is
the current linux ditribution (at least the 'main name' as said above,
even if I can't know the version) up front of all. Never mind what are
the available features or installed packages, it's not the information
I'm looking for and our packages will run whatever be the config.
.



Relevant Pages

  • Re: SCCM Distribution Point Server share
    ... Actually there is one site server with all roles, but we want to place the distribution share Role on a seperate server. ... You said, that this szenario is not supported, so what kind of architecture works with storage who is not managed by Windows-OS like NetApp? ... Actually we don't want to use block based protocols like iSCSI which should work of course, but we need to access the packages and other files from different clients. ...
    (microsoft.public.sms.setup)
  • Re: schannel.dll, secur32.dll, and DSCLIENT.EXE redistribution
    ... include it in the distribution package. ... when not present in a client attempting to access server. ... > me with alternate packages to install from. ...
    (microsoft.public.platformsdk.security)
  • Re: Python syntax in Lisp and Scheme
    ... Pascal Costanza: ... a slew of packages in order to do things. ... which include in the distribution (without downloading extra ... - connect to my POP server, ...
    (comp.lang.lisp)
  • Re: Python syntax in Lisp and Scheme
    ... Pascal Costanza: ... a slew of packages in order to do things. ... which include in the distribution (without downloading extra ... - connect to my POP server, ...
    (comp.lang.python)
  • Re: Add xwindows to Sun
    ... to ssh in with X forwarding and use the X server on my PC. ... The space for a full install is trivial compared to the effort of finding out which bits'n pieces are required to support X and then installing them. ... I think the Solaris 9 Advanced Installation Handbook has a list of which packages are required to install which features. ...
    (comp.unix.solaris)