[olug] get web server host name

Brian Roberson roberson at olug.org
Fri Apr 11 15:24:15 UTC 2008


Quick and dirty if you can run this at the server side:

#############################
#!/usr/bin/perl
use Sys::Hostname;
$host = hostname;
print "$host\n" ;
##############################






> Anyone have any quick and dirty perl ways to get the name of the server
> that
> serviced a http request?
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>





More information about the OLUG mailing list