Mercurial > masqmail
view contrib/guess-hostname @ 160:60c92aa59911
added a script to guess the host's name
author | meillo@marmaro.de |
---|---|
date | Thu, 08 Jul 2010 11:27:03 +0200 |
parents | |
children | 71dcdc2020bc |
line wrap: on
line source
#!/bin/sh # # try several ways to guess the hostname ( # this is what Debian uses cat /etc/mailname # this is often the short hostname cat /etc/hostname # this file was mentioned on the Internet cat /etc/HOSTNAME # probably a good value on GNU/Linux hostname -f # often the short hostname, but widely available hostname ) 2>/dev/null | sort -u