Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 40+ Macs (10.4 - 10.6) and I need to run a script that will join them to an MS Server 2008 Active Directory, Convert local profiles to Mobile profiles, and perform some other tweaks for security on each Mac.

I have to make some variable changes for each machine (i.e. Local user name). The process I would like to use would be something like this: 1) Modify the script for a specific machine 2) Contact the user via phone to make sure all work is saved and applications are closed 3) launch terminal 4) Connect to the remote machine via > ssh administrator@[machinename].local 5) launch the script via > sudo [ServerPath]/join_ad.sh

My problem is that I'm fairly new to Mac Scripting and Terminal and I don't know how to properly call the [ServerPath]. I know on a PC Command prompt I can simply use \\server\share\join_ad.sh. How do I perform a similar remote file call on the Mac Terminal?

Thanks a bunch for any suggestions you may have!

share|improve this question

migrated from stackoverflow.com May 17 '11 at 13:04

This question came from our site for professional and enthusiast programmers.

    
The script is where? in your local machine, or in the remote machine? You need type password for every machine? –  jm666 May 16 '11 at 19:24
    
Thanks jm666 I decided I would copy the script to the local machine using the scp command. That's working great and was easier then Mounting a network path. –  PC Dude May 18 '11 at 17:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.