Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How to get Computer Name in 10.3' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to get Computer Name in 10.3
Authored by: TokyoJimu on Feb 09, '05 02:16:14PM

I've been trying to figure out how to get the "Computer Name" as set under Sharing in System Preferences in 10.3. 'hostname' returns the current FQDN of your current IP address, which isn't what I wanted.

The command I was looking for is
/usr/sbin/scutil --get LocalHostName

I'm adding it to this thread in case someone else is looking for this info.



[ Reply to This | # ]