Sun Management Center Change Manager 1.0 Administration Guide

- Previous: Example-Running Commands in an Interactive Change Manager Session
- Next: How to Authenticate a User (Command Line)

### Example-Running Scripts in a Change Manager Session

This example shows how to use the `changemgr session` command to run a script. The command line runs the script called `deploy-web`, which contains the following:

    #/bin/sh
    changemgr import "$1" /web-server
    changemgr fileset -s MediaName=s9.miniroot "$1"
    changemgr hostset -s base_config_flar_archive="/$1" "$2"
    changemgr update "$2"

The following command line runs the `deploy-web` script.

    $ changemgr session deploy-web web.flar host1

- Previous: Example-Running Commands in an Interactive Change Manager Session
- Next: How to Authenticate a User (Command Line)

- © 2010, Oracle Corporation and/or its affiliates