Search Results

Search: Posts Made By: redologger
1,319
Posted By Akshay Hegde
-type f this would run only on files, not...
-type f this would run only on files, not directories
find /path/to/files -name "*.bak.z" -type f -mtime +365 -delete

execute this first you will come to know what you are going to delete, once...
1,329
Posted By Scrutinizer
Note: ${DB_SID,,} is bash 4.x only.
Note: ${DB_SID,,} is bash 4.x only.
1,329
Posted By RudiC
Depending on your shell, might...
Depending on your shell, might do:DB_SID_SM=/opt/${DB_SID,,}/TEST/somepath
1,329
Posted By vbe
DB_SID=TEST n12:/rdm/users/vbe $ ...
DB_SID=TEST
n12:/rdm/users/vbe $ DB_SID_SM=/opt/$(echo $DB_SID | tr '[:upper:]' '[:lower:]')/TEST/somepath
n12:/rdm/users/vbe $ echo $DB_SID_SM ...
2,189
Posted By Scott
You probably want something like this: ...
You probably want something like this:

totalInstance=1
c=1
SID_1=CERUAT
SID_2=LAUAT
SID_3=TATSUAT
W=$(date '+%d%b%Y')
while [ $c -le $totalInstance ]
do
eval D=\${SID_$c}
...
2,189
Posted By Fundix
eval solution : #!/usr/bin/ksh ...
eval solution :

#!/usr/bin/ksh

totalInstance=1
c=1
SID=SID
SID_1=CERUAT

while (( c <= $totalInstance ))
do
var1="${SID}_${c}"
eval var2="$"$var1
...
2,189
Posted By Scott
while [ $c -le $totalInstance ] do ...
while [ $c -le $totalInstance ]
do
BDUMP_DIR="${SID}_${c}"
eval echo "\$$BDUMP_DIR"
c=$((c + 1))
echo "$c"
done
1,362
Posted By Leion
That is setting up a variable for the oracle...
That is setting up a variable for the oracle password.
if there does not exist that reboot file, you will run sqlplus with those hot.sql and hotback.sql scripts..
1,362
Posted By donadarsh
PASS=Figomom#0;export PASS is password that is...
PASS=Figomom#0;export PASS is password that is getting used to connect to database. Once you set the password you need to export it as environment variable. So whenever you need you can use it.

if...
1,362
Posted By Leion
The system_reboot.flg should be a flag file and...
The system_reboot.flg should be a flag file and not a script..

this is what your script is doing:
first it sets up some variables, including the PASS, which is holding the password to log into...
Showing results 1 to 10 of 10

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