Search Results

Search: Posts Made By: pvmanikandan
2,813
Posted By Chubler_XL
The quotes around EOF stop any variable...
The quotes around EOF stop any variable expansion. If you need the variable expanded you will need to remove the quotes and use backslash for any dollar $ characters you need in the passed SQL code....
2,813
Posted By Chubler_XL
Can I suggest a couple of things: Indent all...
Can I suggest a couple of things:

Indent all your if,do,while blocks you will find issues like this much easier

make use of <<-"EOF" when using here-documents

This allows you to indent the...
5,232
Posted By Yoda
sed 's#_TE#_TH#g' file.sql > tmp; mv tmp...
sed 's#_TE#_TH#g' file.sql > tmp; mv tmp file.sql
3,151
Posted By Corona688
This: EOF You cannot indent this, it...
This: EOF

You cannot indent this, it has to be at the very beginning of the line. Otherwise it will not be considered the end of the here-document.
3,151
Posted By rbatte1
I would still suggest you move the...
I would still suggest you move the $sch/$tpwd@$ttns to another line so that it does not appear to anyone else running ps -ef | grep sql

You might need to code it as:-sqlplus -s <<EOF...
1,882
Posted By mjf
pvmanikandan, What are the values of $from...
pvmanikandan,

What are the values of $from and $to?

Are you trying to create a range of directories?

Also, some adjustments are in order in the variable assignment statement. You should...
1,882
Posted By Scott
$dpdir=DP_FROM_{$from}_TO_{$to} Should...
$dpdir=DP_FROM_{$from}_TO_{$to}


Should be:

dpdir=DP_FROM_${from}_TO_${to}


I would also add:

to=$(echo $to | tr '[a-z]' '[A-Z]')
from=$(echo $from | tr '[a-z]' '[A-Z]')

Then you...
Showing results 1 to 7 of 7

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