Scripting on OSX

Help and discussion about non-Linux operating systems

Moderators: ChrisThornett, LXF moderators

Scripting on OSX

Postby pins » Thu Jun 28, 2007 2:49 pm

Hello again, my chirpy, cheerful chums.

I have been asked to write a script that will 'preferably' run from an OSX server that will gather the information from 'system profiler' on a bunch of macs on a network.
I have tentatively told my boss that this is possible on the grounds that:
1. It's BSD based, so scripting should be quite powerful, and;
2. I thought someone else was going to have to implement it.

Does anyone have any experience of this, or any words of advice?
pins
LXF regular
 
Posts: 154
Joined: Mon Jun 27, 2005 7:24 pm
Location: Haggerston

RE: Scripting on OSX

Postby nelz » Thu Jun 28, 2007 3:42 pm

Google would have given you the answer to this, which is that you can use Bash, and examples of how to do it.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8545
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

RE: Scripting on OSX

Postby A-Wing » Thu Jun 28, 2007 7:55 pm

I have never used it (I use bash, php or perl), but applescript is supposed to be good http://www.apple.com/macosx/features/applescript/. It should integrate with the OS in the way you want.
Andrew Hutchings, Linux Jedi
http://www.a-wing.co.uk
User avatar
A-Wing
LXF regular
 
Posts: 460
Joined: Tue Jul 05, 2005 7:25 pm
Location: Wellingborough

RE: Scripting on OSX

Postby ollie » Fri Jun 29, 2007 6:40 am

The easiest and cheapest way to do this with a lot more functionality is Apple Remote Desktop. It gets all of the information from System Profiler as well as allowing remote graphical access (I know you can also easily do remote desktop through VNC - I do it at home to manage my daughters Macs) and remote installation of software, updates, etc.

For a UK price of GBP349 (don't have that funny shape in Australia :lol: ) that allows unlimited client management it is very cheap.
User avatar
ollie
Moderator
 
Posts: 2749
Joined: Mon Jul 25, 2005 11:26 am
Location: Bathurst NSW Australia

RE: Scripting on OSX

Postby A-Wing » Fri Jun 29, 2007 8:17 am

Isn't ARD just a glorified VNC? Which you can get for free
Andrew Hutchings, Linux Jedi
http://www.a-wing.co.uk
User avatar
A-Wing
LXF regular
 
Posts: 460
Joined: Tue Jul 05, 2005 7:25 pm
Location: Wellingborough

Re: RE: Scripting on OSX

Postby ollie » Mon Jul 02, 2007 6:31 am

A-Wing wrote:Isn't ARD just a glorified VNC? Which you can get for free


As I said above, you can do it through VNC and manage each Mac individually, but ARD is VNC on steroids. You use it to manage multiple Macs at the same time, download scripts to multiple Macs, query multiple Macs for hardware and software installed, install software to multiple Macs and more. If you are manging a networked Mac environment it is brilliant in allowing remote troubleshooting and management.
User avatar
ollie
Moderator
 
Posts: 2749
Joined: Mon Jul 25, 2005 11:26 am
Location: Bathurst NSW Australia


Return to Other OS

Who is online

Users browsing this forum: No registered users and 1 guest