10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, I have two bash scripts like the following:
echo "HELLO $var"
I expected the output to be "HELLO WORLD" but instead, I get "HELLO". I understand that when I envoke another bash... (2 Replies)
Discussion started by: jl487
2. Shell Programming and Scripting
I have written a program for some data analysis. It is gettin long. I would like to restructure it so that i can have a master file which controls multiple subscripts in order to make it easier to understand.
I need to be able to define variables in the master script which are used by all three... (2 Replies)
Discussion started by: carlr
3. Shell Programming and Scripting
I'm trying to create a conf file with variables that my other scripts will use.
I have several scripts that use the same variables, and since I don't know how to read them from an external file, i define them in each script (and then if i want to change one's value i need to... (4 Replies)
Discussion started by: moshe88
4. UNIX for Advanced & Expert Users
I want to know how can we make the variables of one script available for the other script?
for example i have three scripts variable_availability.sh,first.sh,second.sh and a file containing variables called common
cat variable_availability.sh... (2 Replies)
Discussion started by: Kesavan
5. Shell Programming and Scripting
I am using ksh under SunoS. This is what I have
I will be using this file through file1.sh as log file.
I have another script file2.sh which is being called inside my file1.sh. I would like to use the same log... (6 Replies)
Discussion started by: dahlia84
6. Shell Programming and Scripting
I need to pass a value from a script that runs in a sub-shell, back into the calling shell like below (or into script 2 directly):
(in script1: export param=value2)
($param is now value1, not value2... (4 Replies)
Discussion started by: bbergstrom74
7. UNIX for Dummies Questions & Answers
I'm wondering how you pass variable's that are defined in one script to another script that's been called by that first script.....
Jaz (1 Reply)
Discussion started by: Jazmania
8. Shell Programming and Scripting
I have declared a variable in script1 and assign a value for it. In script2 i'll call script1 and then I want the value of variables set in script1.
I have tried with export, but in vain.
How can I achive this?
Below is the two scripts.
echo $1... (1 Reply)
Discussion started by: javaDev
9. UNIX for Dummies Questions & Answers
Just a quick question. If I have a script that calls another script while running, is it possible for the second script to reference a variable in the first script and if so, how. Is it scriptname.sh:$VARIABLE for a global variable and can you do scriptname.sh:function $VARIABLE or am I off my... (1 Reply)
Discussion started by: kirkm76
10. Shell Programming and Scripting
In a ksh script on an AIX box running a jillion oracle database processes, I'm setting a variable to one of two possible arguments, depending on cmd line arguments.
FINDIT="ps -ef | grep oracle | grep DBexport | grep rshrc"
FINDIT="ps -ef | grep oracle | grep prod | grep runback"
I... (3 Replies)
Discussion started by: zedmelon