-
I have written one small script for solaris 2.7. But the script is hanging when iam trying t0 execute it on Solaris 2.7. It is hanging at the following point in the script
if [ "${vsThisPgm}" = "vssetup" ]; then
echo "In if"
Print "\r\r\t\033B\033B\r\r\r\t\r\r\t\t\t\t\t\t\r${vsDir}/${vsOraHome}/patchset/${vsOraPatchLevel}/unix.prd\r \t\r\r\r\r\r\r\t\t\t\t\t\t\t\r\t\r" | ./orainst
Here iam giving that script. Please give any sugestions what woulbe wrong.
***************************************************
#=======================================================================
# Prints a string with a newline
#=======================================================================
PrintLn() # string
{
if [ $# -gt 0 ]; then
echo "$*"
else
echo
fi
if [ $? -ne 0 ]; then
echo "FAILURE: Print $* failed unexpectedly" "failed;"
fi
}
ORACLE_TERM=hp
export ORACLE_TERM
TERM=vt100
export TERM
echo "set the terms properly"
vsTrcFile="ravi.trc"
vsThisPgm="vssetup"
vsDir="myDir"
vsOraHome="oracle"
vsOraPatchLevel="7.3.4.5.0"
echo "before check"
cd /${vsDir}/${vsOraHome}/orainst
#PrintLn "before if" >>${vsTrcFile}
Print "\r\r\t\033B\033B\r\r\r\t\r\r\t\t\t\t\t\t\r${vsDir}/${vsOraHome}/patchset/${vsOraPatchLevel}/unix.prd\r \t\r\r\r\r\r\r\t\t\t\t\t\t\t\r\t\r"
echo "before if"
if [ "${vsThisPgm}" = "vssetup" ]; then
echo "In if"
Print "\r\r\t\033B\033B\r\r\r\t\r\r\t\t\t\t\t\t\r${vsDir}/${vsOraHome}/patchset/${vsOraPatchLevel}/unix.prd\r \t\r\r\r\r\r\r\t\t\t\t\t\t\t\r\t\r" | ./orainst
else
PrintLn "In else"
Print "\r\r\t\033B\033B\r\r\r\r\r${vsDir}/${vsOraHome}/patchset/${vsOraPatchLevel}/unix.prd\r \t\r\r\r\r\r\r\r\t\t\t\t\t\t\t\r\t\r" | ./orainst
fi
PrintLn "completed InstallPatchset() function"
****************************************************8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|