I am using . .profile in my script below
I want to fech it it from my configuration file .id_pass_file.txt(it has all user_name and passwords)
how can i do this
PROFILE_PATH=. .profile
AND IN MY SCRIPT
$PROFILE_PATH
IS THIS CORRECT
#!/bin/sh
ORACLE_HOME=/var/opt/oracle/product/10g;... (8 Replies)
how to read the variable indivdually ( line by line ) in shell script
eg :
i have the config file where contain
cat /home/user01/ilap/conf/input.conf
node.txt
node2.txt
node3.txt
i need to run script like
/home/user01/ilap/exe/run.sh /home/user01/ilap/conf/input.conf
... (1 Reply)
I have a script with few pre defined variables.
Also have a config file. Something like this.
# config file
# Define Oracle User
MOD1_TAG=abcde
MOD2_TAG=xyzabc
MOD3_TAG=def
I need to parse the config file and have each of the value copied to different variables.
Please suggest what... (1 Reply)
how to read the variable from config file
eg: a.cfg below config file config file which contain
a=`hostname`
b=250
a.sh is shell script
echo "$a and $b"
if i run "a.sh 1.cfg" it works
but when i declare N number of variable it wont works..
can u please suggest for that ? (1 Reply)
I am working on garbage collector in C?
How should :confused: I find the part of heap where the variable are stored. It there any compiler (GCC) support for this. (2 Replies)
Hi,
I am exporting the environment variable from config file, but when I echo the variable it does not display any value. Here is the snippet of the code
#!/bin/sh
export ENVIRONMENT_ROOT_DIRECTORY="/cb/$ENVIRONMENT"
echo $ENVIRONMENT_ROOT_DIRECTORY
${JAVA_HOME}/bin/java... (2 Replies)
hi
i have a function
abc()
{
a=1
b=2
c=3
}
Now i want to assign these values to the variables out side the function
k=a
l=b
m=c
please help (4 Replies)
Hi
I want to do the following:
1. Create a number of Gloabla varibale "ROUTE_IP_xx" based on a counter. As xx sould be from 1-10.
ie ROUTE_IP_1
ROUTE_IP_2
.
.
ROUTE_IP_10
2. I want to initalize all of these variable to 0.0.0.0
ie ROUTE_IP_1='0.0.0.0'
3. I... (2 Replies)