sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

User Commands | multimode(1)

- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES
- EXIT STATUS
- SEE ALSO

## NAME

| multimode - allows you to execute multiple commands while returning environment settings and remaining in the asadmin utility

## SYNOPSIS

| `multimode` [--filefilename] [--encodingencode] [--passwordfilefilename] [--interactive]

## DESCRIPTION

| Use the `multimode` command to set your Command-line interface environment settings so you can run multiple commands without having to re-enter the environment level information. In multimode, you can set your environment and run commands until you exit `multimode` by typing "exit" or "quit". Additionally, you can provide commands by passing a previously prepared list of commands from a file or standard input (pipe). You can invoke `multimode` from within a multimode session; once you exit the second multimode environment, you return to your original multimode environment. The `interactive` (default) option prompts you for the required arguments. Use the `interactive` option when you run one command at a time from the command prompt or when you run in multimode from a file. Commands in multimode, when piped from an input stream, and commands invoked from another program, cannot run in the `interactive` mode.

## OPTIONS

| --file consists of commands to be executed in multimode. --encoding system locale encoding method to be used. --passwordfile file containing the administrative passwords appropriate for the command (e.g., administrative instance) --interactive prompts you for the required options.

## EXAMPLES

| Example 1. Using `multimode` to execute multiple commands
    example% asadmin multimode --file commands_file.txt
Where: `example%` is the system prompt. The multimode settings are executed from the `commands_file.txt` file.

## EXIT STATUS

| 0 command executed successfully 1 error in executing the command

## SEE ALSO

| `export`(1), `unset`(1)

| Go To Top | Last Changed 29 Dec 2003

Company Info | Contact | Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.