5

The Perl documentation for Sys::Hostname contains:

Attempts several methods of getting the system hostname [...]. It tries the first available of [blah blah] , and the file /com/host. If all that fails it croaks.

What systems is this /com/host used on? It's a very ungooglable filename, and this is the first time I have heard of it.

u1686_grawity
  • 452,512
  • The only mention of /com I have found is in Apollo Domain/OS, where it is listed as "AEGIS Shell commands", but still no /com/host. – u1686_grawity Jan 31 '11 at 10:28

1 Answers1

5

If you were to look at the actual code for Sys::Hostname you would see this:

# method 6 - Apollo pre-SR10
|| eval {
    local $SIG{__DIE__};
    my($a,$b,$c,$d);
    ($host,$a,$b,$c,$d)=split(/[:\. ]/,`/com/host`,6);
}

so obviously it is on Apollo, pre SR10.

I have no idea what that means - it could be on the moon for all I know ;) Did they use Perl for the moon landings? So pre-SR10 could be before Saturn-V Rocket 10?

Majenko
  • 32,428