Re: Obtaining local host name
Re: Obtaining local host name
- Subject: Re: Obtaining local host name
- From: Ryan McGann <email@hidden>
- Date: Sat, 24 May 2008 13:57:32 -0700
On May 24, 2008, at 12:05 PM, email@hidden
wrote:
gethostname isn't going to work. You're looking for
SCDynamicStoreCopyLocalHostName.
Mark,
I'm curious, why won't gethostname work? The hostname command seems to
return the correct string, and according to the sources, it simply
calls gethostname. What's different about the SytemConfig call?
Ryan
On May 23, 2008, at 3:08 PM, Jeff Jenkins wrote:
$ man 3 gethostname
-- jrj
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden