Search Results

Search: Posts Made By: amar1208
1,429
Posted By amar1208
any sample code please
any sample code please
1,429
Posted By amar1208
Screen Output Needed on every execution
Hi ,

A shell script being executed by multiple user in a host, but i need the output of each user who executed the script
user should have screen output as well ...and unique log file name ...
3,584
Posted By amar1208
PRIM_SEQ=(200 100) STDBY_SEQ=(50 20) above...
PRIM_SEQ=(200 100)
STDBY_SEQ=(50 20)
above value actually i am getting with some sql code, below is my shell script code, values in variable into vertical line
not like horizontal (200 100) and ...
3,584
Posted By amar1208
output i am getting as 200, instead of 170 see...
output i am getting as 200, instead of 170 see below

PRIM_SEQ=200
STDBY_SEQ=30
echo "====================================="
echo "PRIMARY_SEQUENCE of"
echo...
3,584
Posted By amar1208
i am getting error as below tat.sh: line 33:...
i am getting error as below

tat.sh: line 33: {0..8}: syntax error: operand expected (error token is "{0..8}")
================================================================
below is my entire...
3,584
Posted By amar1208
Compare two variables and print the difference
Hi
PRIM_SEQ=`some sql code`
and output of PRIM_SEQ is like below

120
130


STB_SEQ=`some sql code`
and output of STB_SEQ is like below

115
110

i need to compare this two variables...
4,330
Posted By amar1208
#set -x PS3="Enter the correct DB instance...
#set -x
PS3="Enter the correct DB instance number: "
select CHOICE in $(ps -eo args= | awk -F"_" '/pmon/ && !/ASM/ {print $3}')
do echo $CHOICE
[ ! $CHOICE ] && { echo "You have selected invalid...
4,330
Posted By amar1208
is this correct one i have udpated ? #set...
is this correct one i have udpated ?

#set -x
PS3="Enter the correct DB instance: "
select CHOICE in $(ps -eo args= | awk -F"_" '/pmon/ && !/ASM/ {print $3}')[ ! $CHOICE ] && { echo "invalid...
4,330
Posted By amar1208
below is my code, in below if i give invalid...
below is my code, in below if i give invalid entry then it echo as "invalid entry" and should exit the script

#!/bin/bash
#set -x
PS3="Enter the correct DB instance: "
select CHOICE in $(ps...
4,330
Posted By amar1208
Thanks Rudic echo...
Thanks Rudic


echo "======================================================"
echo "Enter the correct DB instance "
echo "======================================================"
ps -eo args= | ...
4,330
Posted By amar1208
Hi, i am getting output as below, $ ps...
Hi,

i am getting output as below,

$ ps -eo args= | grep [p]mon | grep -v ASM
ora_pmon_abc1
ora_pmon_abc2
ora_pmon_abc3
ora_pmon_abc4
ora_pmon_abc5


but i am looking output as below...
4,330
Posted By amar1208
someone please provide your inputs
someone please provide your inputs
4,330
Posted By amar1208
Oracle pmon output needed
$ ps -ef | grep pmon | grep -v grep | awk '{ print $8 }' | cut -d '_' -f3
abc1
abc2
abc3
abc4
abc5
+ASM1

Please use code tags
from above output i am looking exclude +ASM output and restout...
1,343
Posted By amar1208
anyone please help
anyone please help
1,343
Posted By amar1208
Screen output to a file
Hi All,

I am trying to out of shell script when i run it

like
sh /mypath/abc.sh

....a screen log should be generated whenever i input the values, when above the script prompt for values...
1,321
Posted By amar1208
i have tried one test z=`ssh remote...
i have tried one test


z=`ssh remote host export ORACLE_HOME=/my_home_location; export PATH=$ORACLE_HOME/bin:$PATH; srvctl config database -d DB | awk -F: '/^Database role/ {match ($0,...
1,321
Posted By amar1208
i have updated this, but still i am getting same...
i have updated this, but still i am getting same error,
STANDBY_CONF=$(ssh $COB_HOST << EOF
srvctl config database -d $CURRENT_COB | awk -F: '/^Database role/ {match ($0,...
1,321
Posted By amar1208
Hi Bala, srvctl config database -d...
Hi Bala,


srvctl config database -d $CURRENT_COB ---(which need to get output from node2 )
but i fire directly on node2
srvctl config database -d XYX ---- i am getting the output as below...
1,321
Posted By amar1208
Anyone please help....
Anyone please help....
1,321
Posted By amar1208
Thank Rudic, that space issue is resolved, i have...
Thank Rudic, that space issue is resolved, i have other issue now

Note:

CURRENT_PRIM is on node 1
CURRENT_COB is on node 2
here i am trying to get values into below variable from node 1 and...
1,321
Posted By amar1208
Need to get out of 2 variables in scripts
Hi All,

i have written below script, and out put i am looking for both variable PRIMARY_CONF and $STANDBY_CONF but i am getting below error
d1.sh: line 64: [: too many arguments
There is...
1,306
Posted By amar1208
no attempts, i am new to shell scripting.... ...
no attempts, i am new to shell scripting....
appreciate your helps ...

--- Post updated at 09:01 PM ---

Hi,
someone please help on it

--- Post updated at 09:01 PM ---

Hi,
someone...
1,306
Posted By amar1208
Search for specific key in a file and print it
Hi All,

I have a file abc.txt
Database unique name: NEPAL
Database name: NEPAL
Services: NEPAL_COB,NEPAL_PROD

output i need is it should search "Services" and it that search "COB" word
so...
Showing results 1 to 23 of 23

 
All times are GMT -4. The time now is 10:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy