in reply to Mail::Audit, sendmail, and Sys::Hostname: hostname fails in .forward
it should try to use POSIX::uname after it tries the hostname command, but before it tries uname and /com/host commands. if that works, and you aren't too concerned about portability to non-POSIX systems, you could just use that instead of Sys::Hostname (it's even a standard module, so you don't have anything extra to install).use POSIX; $host = (POSIX::uname())[1]; print "$host\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(2): Mail::Audit, sendmail, and Sys::Hostname: hostname fails in .forward
by FoxtrotUniform (Prior) on Jun 20, 2002 at 21:23 UTC |