RemoteInst.sh Script Example

#!/bin/sh
#
# validate that you have been given a target computer name
#
if [ $# != 1 ]; then
    echo "Usage: remoteInst.sh <target_computer>"
    exit 1
fi
TARGET=$1
#
# copy over our installation script
#
scp eTrustITM.MacOSX.sh root@$TARGET:eTrustITM.MacOSX.sh
#
# now run the installation script
#
ssh -t root@$TARGET './eTrustITM.MacOSX.sh; rm -f ./eTrustITM.MacOSX.sh'

More information:

Install Silently on Mac OS X

Example Scripts


Copyright © 2009 CA. All rights reserved.