asadmin-unset(1AS) User Commands asadmin-unset(1AS)NAME
asadmin-unset, unset - removes one or more variables from the multimode environment
SYNOPSIS
unset env_var [env_var]*
Removes one or more variables you set for the multimode environment. The variables and their associated values will no longer exist in the
environment.
OPERANDS
env_var environment variable to be removed.
Example 1: Using unset to remove environment variables
asadmin> export AS_ADMIN_HOST=bluestar AS_ADMIN_PORT=8000 AS_ADMIN_USER=admin AS_ADMIN_PASSWORD=password
asadmin> export AS_ADMIN_PREFIX=server1.jms-service
asadmin> export
AS_ADMIN_HOST=bluestar
AS_ADMIN_PORT=8000
AS_ADMIN_USER=admin
AS_ADMIN_PASSWORD=********
AS_ADMIN_PREFIX=server1.jms-service
asadmin> unset AS_ADMIN_PREFIX
asadmin> export
AS_ADMIN_HOST=bluestar
AS_ADMIN_PORT=8000
AS_ADMIN_USER=admin
AS_ADMIN_PASSWORD=********
Using the export command without the argument lists the environment variables that are set. Notice the AS_ADMIN_PREFIX is not in the envi-
ronment after running the unset command.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-export(1AS), asadmin-multimode(1AS)J2EE 1.4 SDK March 2004 asadmin-unset(1AS)
Check Out this Related Man Page
asadmin-multimode(1AS)asadmin-multimode(1AS)NAME
asadmin-multimode, multimode - allows you to execute multiple commands while preserving environment settings and remaining in the asadmin
utility
SYNOPSIS
multimode [--file filename] [--printprompt=true] [--encoding encode] [--terse=false] [--echo=false]
Use multimode to process the asadmin commands. The command-line interface will prompt you for a command, execute that command, display the
results of the command, and then prompt you for the next command. Additionally, all the asadmin option names set in this mode are used for
all the subsequent commands. You can set your environment and run commands until you exit multimode by typing "exit" or "quit." You can
also 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.
This command is supported in local mode only.
--file reads the commands as defined in the file.
--printprompt allows the printing of asadmin prompt after each command is executed. Set this option to false when the commands
are piped or redirected from the standard input or file. By default the option is set to true.
--encoding specifies the locale for the file to be decoded.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on to the standard output. Default is false.
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
asadmin-export(1AS), asadmin-unset(1AS)J2EE 1.4 SDK March 2004 asadmin-multimode(1AS)
Hello,
I want to set some environment variables with this script:
ip=$@
echo Remote Computer: $ip
PERLDB_OPTS="CallKomodo=$ip:9000 RemotePort=$ip:9010 PrintRet=0"
export PERLDB_OPTS
PERL5LIB=/opt/komodo
export PERL5LIB
echo PERLDB_OPTS: $PERLDB_OPTS
echo PERL5LIB: $PERL5LIB
But it... (5 Replies)
Hi
Input File:
export NAME='AA.BB.CC'
export FILE=1.2.3
AA.BB.CC
export MAIL= '1.3.3'
export char='XX.YY.ZZ'
Out File
export NAME='AA/BB/CC'
export FILE=1.2.3
AA.BB.CC
export MAIL= '1.3.3'
export char='XX/YY/ZZ'
Only the Lines which have export and have alphabets after =... (9 Replies)
Dear All,
I have a problem with export. I would like to show a prompt on my shell but as I receive the export environment variable pointer it is the string.
Like it is shown in the Title of this message
How I can get the result of that command after execution in a string I mean I would like to... (6 Replies)
I am working with Sun Solaris 9 and I want to export the environment variable from my application(xxxx.ksh) but I am not able to see it when I am using SET command
I am writing some variables which I have to set
COMMON_USER_HOME=${HOME}
export COMMON_USER_HOME
echo... (6 Replies)
Hello
I have a SunBlade 1000 workstation and I cannot login via CDE. All I get is a console login prompt. I then have to login via root and I just get the command line interface.
I have being doing some research on the UNIX forum and the problem may lie with the content in etc/hosts file.... (7 Replies)
Hello friends,
I have a database export and with this export i need to find some statistics which is required. I take the export of a table with only 3 columns like this:
2nd 3rd 12th
123 05.11.2010 09:27 0
124 05.11.2010 09:28 0
125 05.11.2010 09:34 1
126 05.11.2010 09:39 0... (5 Replies)
Could someone please tell me how to unset your .bashrc? I have tried all of these. I can't find anything useful from google.
unset -f .bashrc
unset .bashrc (9 Replies)
Hi,
I know that export command is used to set environment variable.
Can you please explain what ":--100" in the below command is doing?
export ROWSTOLOAD=${ROWSTOLOAD:--100}
Thanks,
Gangadhar (5 Replies)
Hi all guys,
how you can read in thread title, I'm deploying a bash script in which I have to export some variables inside it.
But (I think you know) the export command works only inside the script and so, on exit command, the variables aren't set like I set inside the script.
Consequently in... (8 Replies)
Hi
I want export input data ...
echo "month: "
read m
export m=$m
also export m is not working ?
the month-variable should be exportet for the use in other scripts,
but it is not working like this. What i'm doing wrong?
Thanks in advance!
IMPe (10 Replies)
Hi
I want to read variables from one file and then set it as environment variable;
The text file is test.txt which contains
SPEED:1000
IP:172.26.126.11
My code is:
while read line; do
var1=`echo $line | awk 'BEGIN {FS=":"} { print $1 }'`
echo $var1
var2=`echo $line | awk 'BEGIN {FS=":"}... (8 Replies)
Hi,
Can someone tell what is the path for "unset", I tried "which" command but getting below error
# which unset
/usr/bin/which: no unset in (/usr/lib/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin/:/root/bin) (9 Replies)
Hi Experts,
Need your help in understanding the commands to setup the environment variables in hp-ux.
Beleive need to use either set,setenv or export.
I am confused between above three options, when to use which option?
On command line, I have tried both set and setenv but couldn't... (7 Replies)