Search Results

Search: Posts Made By: harishshankar
3,239
Posted By harishshankar
This certainly helps. I will modify my code...
This certainly helps. I will modify my code accordingly to see if it works as expected. Thank you
3,239
Posted By harishshankar
Variable gets auto updated after function execution
Hi Team

In the below code, irrespective of the if statement that gets executed, retcd is being assigned a standard value(1) instead of changing as per code. Could you please help to see where is...
1,517
Posted By harishshankar
Hi Experts This is the code on Host A: ...
Hi Experts

This is the code on Host A:

<rval1=0
#local checkDB
checkDB=$(ssh user@host
expect "password"
send "password\r"
interact
/home/test.sh)
echo $?
/>

Code on Host B:
...
1,517
Posted By harishshankar
Thank you for getting back. When i use sqlplus or...
Thank you for getting back. When i use sqlplus or tnsping, both of them return 'command not found' error on Host A probably because oracle client is not installed on host A but is on Host B.
1,517
Posted By harishshankar
Thank you for getting back. I am trying to bring...
Thank you for getting back. I am trying to bring up a application server on Host A if the DB is up on host B. tnsping and sqlplus are not working when trying to execute on Host A. So i thought of...
1,517
Posted By harishshankar
Thank you vbe for the reply. This is what i have...
Thank you vbe for the reply. This is what i have written. Could you please see if this is going to work:

Script on Host B:

#Variables
rval=0

#Check if DB is up
ps -ef|grep -v grep|grep...
1,517
Posted By harishshankar
How to connect to a DB installed on another host using shell script?
Hi Experts

There are two hosts say A and B. On host B, Oracle DB is installed and running. I am trying to check if the DB on host B is up and running fine from a script on host A. Is this...
Showing results 1 to 7 of 7

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