<!--Arbortext, Inc., 1988-2007, v.4002-->
<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD SolBook 3.5//EN" [
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "common.ent">
%commonents;
]>
<refentry id="export-1">
<!-- @(#)export.1 1.9 07/04/25 SMI; -->
<refmeta><refentrytitle>export</refentrytitle><manvolnum>1</manvolnum>
<refmiscinfo class="date">30 Jan 2007</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&software;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">Copyright (c) 2007, Sun Microsystems, Inc.
All Rights Reserved</refmiscinfo>

</refmeta>
<refnamediv><indexterm><primary>export</primary></indexterm><indexterm><primary>
marks a variable name for automatic export to the environment of subsequent
commands in multimode</primary></indexterm><refname>export
</refname><refpurpose>marks a variable name for automatic export to the environment
of subsequent commands in multimode</refpurpose></refnamediv>
<refsynopsisdiv><title></title>
<synopsis><command>export </command>  [ <replaceable>name=value </replaceable> [<replaceable> name=value</replaceable>]<replaceable>*</replaceable>]</synopsis></refsynopsisdiv>
<refsect1 role="description"><title></title>
<para>The <command>export</command> command marks a variable name for automatic
export to the environment of subsequent commands. All subsequent commands
use the variable name value as specified unless you unset them or exit multimode.
If only the variable name is specified, the current value of that variable
name is displayed. If the <command>export</command> command is used without
any arguments, a list of all the exported variables and their values is displayed.
Exported shell environment variables set prior to invoking the <command>asadmin
</command> utility are imported automatically and set as exported variables
within <command>asadmin</command>. Unexported environment variables cannot
be read by the <command>asadmin</command> utility.</para>
</refsect1>
<refsect1 role="operands"><title></title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>name=value</replaceable></term><listitem>
<para>variable name and value for automatic export to the environment to be
used by subsequent commands.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 role="examples"><title></title>
<example>
<title>Using <command>export</command> command</title>
<screen>asadmin> <userinput>export</userinput>
AS_ADMIN_USER = admin
AS_ADMIN_HOST = bluestar
AS_ADMIN_PREFIX = server1.jms-service
AS_ADMIN_PORT = 8000</screen>
</example>
<example>
<title>using <command>export</command> command to set an environment variable
</title>
<screen>asadmin> <userinput>export AS_ADMIN_HOST=bluestar</userinput>
In this case, the AS_ADMIN_HOST environment variable has been set to bluestar.
</screen>
</example>
<example>
<title>Using <command>export</command> command to set multiple environment
variables</title>
<screen>asadmin> <userinput>export AS_ADMIN_HOST=bluestar AS_ADMIN_PORT=8000 
AS_ADMIN_USER=admin AS_ADMIN_PREFIX=server1.jms-service</userinput>
In this case, the environment variables have been set to:
host is set to bluestar
port is set to 8000
administrator user is set to admin
prefix is set to server1.jms-service</screen>
</example>
</refsect1>
<refsect1 role="exit-status"><title></title>
<variablelist termlength="narrow">
<varlistentry><term>0</term><listitem><para>command executed successfully
</para>
</listitem></varlistentry>
<varlistentry><term>1</term><listitem><para>error in executing the command
</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 role="see-also"><title></title>
<para><olink targetdoc="ASREFMAN" targetptr="unset-1">unset(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="multimode-1">multimode(1)</olink></para>
</refsect1>
</refentry>
<?Pub *0000004240>
