Could parse hostname --fqdn
Fahad Sadah


2009/9/2 River Tarnell <river@loreley.flyingparchment.org.uk>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Darren R. Hardy:
> I use this in my shell scripties:

> if [ "`hostname --domain 2>/dev/null`" = "toolserver.org" ]; then

this won't work on the web server as there is no --domain option.

       - river.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (HP-UX)

iEYEARECAAYFAkqer28ACgkQIXd7fCuc5vI/owCfXkrJuqNSguMmlPxNrj5RyHu8
EaEAoLOYFyO5SDGSoDrw9kIcViZHYV62
=pjAs
-----END PGP SIGNATURE-----

_______________________________________________
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette