2 chomp($nodename= `uname -n`); $? and die 'uname $?';
4 @he= gethostbyname $nodename or die "gethostbyname $nodename ?";
5 @hostnames= ($he[0], split /\s/, $he[1]);
6 ($hostname)= grep /\./, @hostnames or die "no fqdn in @hostnames";
9 $xbindir= '/usr/bin/X11';
11 chomp($uname= `uname`); $? and die "platform $?";
12 if ($uname =~ m/^Linux$/) {
13 chomp($_= `uname -m`); $? and die "platform $?";
15 $platform= 'linux-i386';
19 } elsif ($uname =~ m/^SunOS$/) {
20 chomp($_= `uname -r`); $? and die "platform $?";
21 m/^\d+\.\d+/ or die "$_ ?";
23 $xbindir= '/usr/openwin/bin';
24 } elsif ($uname =~ m/^HP\-UX/) {
25 chomp($_= `uname -r`); $? and die "platform $?";
26 m/^B\.(\d+\.\d+)$/ or die "$_ ?";
32 $ncipher= $hostname =~ m/\.(ncipher\.com$)/ ? 'cam' :
33 $hostname =~ m/\.(ncipherusa\.com$)/ ? 'bos' :
36 %ncipherdom= ('cam' => 'ncipher.com',
37 'bos' => 'ncipherusa.com');