I'm trying to use getprotobyname to, well, get the port number for something that's listed in /etc/services on the machine where my script is running.
I've tried it with and without parens, with and without quotes, and $server_port is never populated. What's going on here?