I stumbled upon this great command the you can call from bash shell.
Use systemsetup -help to get the many options. I have just started to play with this tool.Code:[jasonralph@shine[~]# systemsetup
For instance I will get some basic information by running.
There are a ton of options with systemsetup.Code:[jasonralph@shine[~]# systemsetup -getcomputername Computer Name: shine
Check out the man page here:
Mac OS X Manual Page For systemsetup(
Very Cool Stuff,