Thank you so much for your inputs. I will review whole script with your pointout and test again. Then come back with working script for your information.
---------- Post updated at 10:18 AM ---------- Previous update was at 10:03 AM ----------
methyl:
for sid in ${orasids[*]} is from this line:
It cat out database list from oratab.
We'd like to see the value of $orasids after this command. On my test each sid has a trailing linefeed character. If your /etc/oratab has an asterisk in the sid field it will wreak havoc later in the script (one of mine does).
Similarly if none of the lines match that grep.
I give up. Without seeing /etc/oratab on a computer where the script works and /etc/oratab on a computer where the script does not work, this is impossible.
IMHO the only significant variable is the contents of /etc/oratab ... or possibly the default Shell on the computer.
I don't understand what do you mean "Without seeing /etc/oratab on a computer where the script works and /etc/oratab on a computer where the script does not work".
In my script: cat /etc/oratab to get database array and to loop to call another SQL script to do the work. What are you looking at?
Hi, The below commands works fine on serverB
. /etc/profile;
cd /export/home/user2/utils/plugin/
./runme.shHowever, when i run the same commands from serverA it fails
$ ssh -q user2@serverB ". /etc/profile; cd /export/home/user2/utils/plugin; ./runme.sh"Output Error:
Please find the below... (8 Replies)
Hi,
While running tcpdump command on my Fedora 16 machine I am get shared library issue.
# tcpdump
tcpdump: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
# which tcpdump
/usr/software/sbin/tcpdump
I have tried... (3 Replies)
Hi Guys,
I am facing this Error
bash-2.03$ ./curl -V
ld.so.1: curl: fatal: libldap.so.5: open failed: No such file or directory
Killed
bash-2.03$
while executing
./curl -V in /opt/sfw/bin directory.
I am using Sun Solaris 10.
which package upgrage can give me this missing... (9 Replies)
Hello folks!
I am new to Shell and awk scripting.
This is my shell script that receives a string as an input from the user from the stdin.
#!bin/sh
printf "Enter your query\n"
read query
cmd=`echo $query | cut -f 1 -d " "`
input_file=`echo $query | cut -f 2 -d " "`
printf $input_file... (10 Replies)
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
We are trying to install third party software on this unix server...
Here is the error message we are getting...
error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory
It seems like odbc driver is not installed...
>rpm -q unixODBC... (1 Reply)
Hi Friends
I have a compiler(Sun Forte,I believe) running in my Solaris 9 box.
since y'day my development team is finding this error when they compile:
ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory
I ran a search for this file and found it in one of my file... (2 Replies)