The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Most suitable operating system sunilryl Ubuntu 2 01-16-2008 04:27 PM
show firmware of network card pressy SUN Solaris 2 03-21-2006 01:09 PM
Operating System alecks1975 UNIX for Dummies Questions & Answers 1 11-24-2005 10:43 AM
cannot load any operating system Derrek Filesystems, Disks and Memory 3 08-12-2004 08:22 AM
Is Unix a Network operating system for Macintosh computers Bill1263 UNIX for Advanced & Expert Users 2 09-05-2002 11:50 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-26-2008
digitaljunkie
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Show operating system, current user & network

I have found an excellent OS X pref pane that allows you to output log files or terminal commands/scripts onto the desktop in the background.

What I want to do is create a script that outputs the following...

- Mac OS X Version and Build (As shown in the about this mac)
- Current username
- Current network ports and their associated IP addresses.
- Current machine or hostname
- Attached Volumes

So an example output would be

Mac OS X 10.5.5 Build 9F33
JonDoe
en0 192.168.0.1
en1 192.168.0.2
computer.local <or> computer.mydomain.com
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *111.8 Gi disk0
1: EFI 200.0 Mi disk0s1
2: Apple_HFS Macintosh HD 88.9 Gi disk0s2
3: Microsoft Basic Data WINDOWS 22.6 Gi disk0s3


Could someone help or point me at the right commands and how to output it.

I know diskutil will show me the volumes etc but the rest I am unsure of.

Thanks in advance
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0