Can someone send me a shell script to set all Oracle environment variable which is working.
I have the following script which works but not 100%. Please advice what you think is wrong.
if # Command executed from a terminal
then
ORACLE_SID=""
... (4 Replies)
Hi,
I'm exporting an environmental variable from a C program using putenv function. I'm calling the exe of the C program from shell script. But when I display the environmental variables from the Shell script, My varaible is not getting displayed.
Can anyone please tell me how to get it in... (2 Replies)
Hi,
I have problem setting up environmental variables.
The idea is to start with main.ksh script that will run setting.ksh, and in side of it I'll set up variables.
Please take a look at my code, and help me to find my mistake.
Thanks,
Mila
Main.ksh look like this:
#!/usr/bin/ksh
#... (2 Replies)
Hello.
I have a question about how the PATH environment variable works.
I wrote a script in $HOME/bin/gvim.
I want it to be called instead of /usr/bin/gvim,
so I've placed it before in the PATH.
However, it is still the old one that is found.
If I open an other terminal, I have the... (6 Replies)
Dear Folks,
I am facing an issue in getting a value of a variable.Let me explain the scenario.
I am having a list file say files.list in which I have mentioned
1 FILE1
2 FILE2
Then I am having an set_env.ksh in which I mentioned
FILE1=/clocal/data/user/userdata.txt... (4 Replies)
I have a request from a programmer to set an env variable for him. I know how to do it for bash shell by adding the following line to .bash_profile
export $VAR=/home/code/project/
But this will be applicable only when he is in his bash shell. What is the procedure to be followed to make... (2 Replies)
Hola -
I've got a script for logon which populates a database with some info when a user logs on so that we can tell how many public terminals are in use & show users which ones are free. However, the machines are DHCPed and so using $HOSTNAME gives me an unstable name for them since of course... (3 Replies)
anyone has any idae how do i clear the value in a variable in BASH?
So far I come across "Clear-variable", however it can only clear a "Local" and "Global" variable. I'm trying to clear a self-declared variable.
Anyone has any suggestions? (4 Replies)
i want to set environmental variables in solaris and redhat.
it should show the current directory and the default shell should be bourne shell. along with it should show the hostname..
like this
hostname{/home/vipin/data}# ifconfig
Thanks in advanced.:wall:
Please use code tags.... (1 Reply)
My shell script it.sh.I am calling bip.sh from it.sh
#!/bin/sh
ORACLE_HOME=/var/opt/oracle/product/10g; export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin:/bin:/usr/bin; export PATH
today=`date "+%m-%d-%Y %H:%M:%S"`; export today
CUR_DIR=$1; export CUR_DIR
LOG_FILE=$CUR_DIR/error.log;... (4 Replies)
Discussion started by: rafa_fed2
4 Replies
LEARN ABOUT MOJAVE
unset
unset(n) Tcl Built-In Commands unset(n)
__________________________________________________________________________________________________________________________________________________NAME
unset - Delete variables
SYNOPSIS
unset ?-nocomplain? ?--? ?name name name ...?
_________________________________________________________________DESCRIPTION
This command removes one or more variables. Each name is a variable name, specified in any of the ways acceptable to the set command. If
a name refers to an element of an array then that element is removed without affecting the rest of the array. If a name consists of an
array name with no parenthesized index, then the entire array is deleted. The unset command returns an empty string as result. If -nocom-
plain is specified as the first argument, any possible errors are suppressed. The option may not be abbreviated, in order to disambiguate
it from possible variable names. The option -- indicates the end of the options, and should be used if you wish to remove a variable with
the same name as any of the options. If an error occurs, any variables after the named one causing the error are not deleted. An error
can occur when the named variable does not exist, or the name refers to an array element but the variable is a scalar, or the name refers
to a variable in a non-existent namespace.
EXAMPLE
Create an array containing a mapping from some numbers to their squares and remove the array elements for non-prime numbers:
array set squares {
1 1 6 36
2 4 7 49
3 9 8 64
4 16 9 81
5 25 10 100
}
puts "The squares are:"
parray squares
unset squares(1)squares(4)squares(6)
unset squares(8)squares(9)squares(10)
puts "The prime squares are:"
parray squares
SEE ALSO
set(n), trace(n), upvar(n)
KEYWORDS
remove, variable
Tcl 8.4 unset(n)