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 an .app executable generated for MacOSX. Is it any easy way to install this app into Applications so it can be used by end users, via script? (need to install on multiple computers and really don't want to create intermediate .pkg installer for it)

share|improve this question
    
How are you planning on deploying it? ssh to a box and run a script? Using something like Apple Remote Desktop or the Casper Suite? Or did you want a script that end users can run that will download and install the .app? –  Clinton Blackmore Jun 1 '09 at 20:01
    
You don't need to "install" it. It's just a matter of copying .app directory there. –  porneL Jun 1 '09 at 22:12

1 Answer 1

up vote 1 down vote accepted

Here is a specific example:

scp -r /Applications/Opera.app sysadmin@CES-iBookGr4-88.local:/Applications

This recursively copies the folder for, in this example, the Opera web browser, from my computer to a computer (named CES-iBookGR4-88) that I have an ssh account on.

More generically:

scp -r /Applications/{App.app} {user}@{RemoteDestination}:/Applications

Where App.app represents the application and the remote destination is the IP name or address of a computer that you have a user account on with ssh access. (Turn on Remote Login in the Sharing Preferences).

To go the other way, do this:

scp -r {user}@{RemoteSource}:/Applications/{App.app} /Applications

In both cases, you will likely be asked to verify the other computer (just type in yes when asked to id it) and will be asked for the user's password.

share|improve this answer
    
and if some clients may already have this app, then rsync would work well. –  porneL Jun 1 '09 at 22:11

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.