[Pythonmac-SIG] Getting Sharing name of the Macintosh viaPython?

Schollnick, Benjamin Benjamin.Schollnick at xerox.com
Thu Aug 4 15:10:43 CEST 2005

> Is `hostname` what you look for?

I just confirmed....  The Command Line "hostname" application
does indeed return the TCP/IP hostname...  In this case the
DHCP assigned hostname...

But system_profiler does indeed for Local_host_name return the
Sharing pref. Plane machine name....

Since I'm reading that information anyway, that works nicely...
(But I would swear that I had checked that earlier...)

		- Benjamin

More information about the Pythonmac-SIG mailing list