Thread osver gibt mir nicht die wirkliche OS Version (11 answers)
Opened by wenze at 2018-05-23 10:51

wenze
 2018-05-23 10:51
#188437 #188437
User since
2006-06-15
29 Artikel
BenutzerIn
[default_avatar]
Hallo,

ich habe hier mal etwas seltsames. Perl gibt mir hier auf AIX nicht die richtige OS-Version zurück. Hat jemand eine Idee?


Code (perl): (dl )
1
2
3
4
5
6
7
8
#!/usr/bin/perl
use strict;
use warnings;
use Config;

print "$Config{osname}\n";
print "$Config{archname}\n";
print "$Config{osvers}\n";


Perlausgabe:
./os_version.pl
aix
aix-thread-multi
6.1.2.0

OSAusgabe:
oslevel -r
7100-04

Perlversion:
perl -version

This is perl, v5.10.1 (*) built for aix-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Last edited: 2018-05-23 11:16:03 +0200 (CEST)

View full thread osver gibt mir nicht die wirkliche OS Version