07-24-2019
I think your set -x gives pretty clear idea that "srvctl config database...." is not having any output. So $STANDBY_CONF is empty.
May be you want to check by running this command directly on command line and see why it's not showing any output.
This User Gave Thanks to balajesuri For This Post:
10 More Discussions You Might Find Interesting
1. 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"
-or-
FINDIT="ps -ef | grep oracle | grep prod | grep runback"
I... (3 Replies)
Discussion started by: zedmelon
3 Replies
2. 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
1 Replies
3. Shell Programming and Scripting
Hi All,
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.
--script1
#!/usr/bin/ksh
echo $1... (1 Reply)
Discussion started by: javaDev
1 Replies
4. UNIX for Dummies Questions & Answers
Hey all,
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.....
Best regards,
Jaz (1 Reply)
Discussion started by: Jazmania
1 Replies
5. Shell Programming and Scripting
Hi all.
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):
outer_script
export param=value1
script1 $param
(in script1: export param=value2)
script2 $param
($param is now value1, not value2... (4 Replies)
Discussion started by: bbergstrom74
4 Replies
6. Shell Programming and Scripting
Friends,
I am using ksh under SunoS. This is what I have
In file1.sh
NOW=$(date +"%b-%d-%y")
LOGFILE="./log-$NOW.log"
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 Replies
7. UNIX for Advanced & Expert Users
Hello Everyone,
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
2 Replies
8. Shell Programming and Scripting
Hello everyone.
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 Replies
9. 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
2 Replies
10. Shell Programming and Scripting
Hello, I have two bash scripts like the following:
script 1:
#!/bin/bash
var=WORLD
bash path/to/second/script/script2.bash
script 2:
#!/bin/bash
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 Replies
LEARN ABOUT REDHAT
option
option(n) Tk Built-In Commands option(n)
__________________________________________________________________________________________________________________________________________________
NAME
option - Add/retrieve window options to/from the option database
SYNOPSIS
option add pattern value ?priority?
option clear
option get window name class
option readfile fileName ?priority?
_________________________________________________________________
DESCRIPTION
The option command allows you to add entries to the Tk option database or to retrieve options from the database. The add form of the com-
mand adds a new option to the database. Pattern contains the option being specified, and consists of names and/or classes separated by
asterisks or dots, in the usual X format. Value contains a text string to associate with pattern; this is the value that will be returned
in calls to Tk_GetOption or by invocations of the option get command. If priority is specified, it indicates the priority level for this
option (see below for legal values); it defaults to interactive. This command always returns an empty string.
The option clear command clears the option database. Default options (from the RESOURCE_MANAGER property or the .Xdefaults file) will be
reloaded automatically the next time an option is added to the database or removed from it. This command always returns an empty string.
The option get command returns the value of the option specified for window under name and class. If several entries in the option data-
base match window, name, and class, then the command returns whichever was created with highest priority level. If there are several
matching entries at the same priority level, then it returns whichever entry was most recently entered into the option database. If there
are no matching entries, then the empty string is returned.
The readfile form of the command reads fileName, which should have the standard format for an X resource database such as .Xdefaults, and
adds all the options specified in that file to the option database. If priority is specified, it indicates the priority level at which to
enter the options; priority defaults to interactive.
The priority arguments to the option command are normally specified symbolically using one of the following values:
widgetDefault
Level 20. Used for default values hard-coded into widgets.
startupFile
Level 40. Used for options specified in application-specific startup files.
userDefault
Level 60. Used for options specified in user-specific defaults files, such as .Xdefaults, resource databases loaded into the X
server, or user-specific startup files.
interactive
Level 80. Used for options specified interactively after the application starts running. If priority isn't specified, it defaults
to this level.
Any of the above keywords may be abbreviated. In addition, priorities may be specified numerically using integers between 0 and 100,
inclusive. The numeric form is probably a bad idea except for new priority levels other than the ones given above.
KEYWORDS
database, option, priority, retrieve
Tk option(n)