Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

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 Commandsmultimode(1)


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)


Sun Java System Application Server Standard and Enterprise Edition 7 2004Q2Go To TopLast Changed 29 Dec 2003