Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

UNIX command for terminal

Here is what I want to do:


I want to send the terminal command to 25 laptops all at once to direct them to our internal server for software update.


I know how to log in to all of the machines at once.


osascript -e 'tell application "System Events"' -e 'keystroke "username"' -e 'keystroke tab' \

-e 'delay 0.5' -e 'keystroke "password"' -e 'delay 0.5' -e 'keystroke return' -e 'end tell'



I know how to open terminal.


open -a terminal


Now what I want to know is how to have it type this in for me:


sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURLhttp://SERVER.local:8088/index-mountainlion-lion-snowleopard-leopard.merged-1.su catalog


Then have a pause and then type my password.


Bonus points for then a script to force it to check for and do the update.

MacBook Pro, OS X Mountain Lion (10.8)

Posted on Apr 24, 2013 2:26 PM

Reply
1 reply

UNIX command for terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.