help on unix command [message #235566] |
Mon, 07 May 2007 04:01 |
maoro
Messages: 312 Registered: May 2005
|
Senior Member |
|
|
please explain this update to the webcache.xml file ( attached)
sorry i come from a windows env
thank you
*************
echo -n "7. Updating webcache.xml file..."
set line_num = `grep -n "</CACHEABILITY>" $ORACLE_HOME/webcache/webcache.xml | tail -1 | cut -d : -f 1`
head -`expr $line_num - 1` $ORACLE_HOME/webcache/webcache.xml > webcache.xml.bcp
cat cacherule.txt >> webcache.xml.bcp
tail +$line_num $ORACLE_HOME/webcache/webcache.xml >> webcache.xml.bcp
if ($os_name == "Linux") then
cp -vu $ORACLE_HOME/webcache/webcache.xml $ORACLE_HOME/webcache/webcache.xml.orig >> $logfile
cp -vu webcache.xml.bcp $ORACLE_HOME/webcache/webcache.xml >> $logfile
else
cp $ORACLE_HOME/webcache/webcache.xml $ORACLE_HOME/webcache/webcache.xml.orig >> $logfile
cp webcache.xml.bcp $ORACLE_HOME/webcache/webcache.xml >> $logfile
endif
echo "Succeeded."
********************************************
if possible plese upload the updated file
-
Attachment: webcache.xml
(Size: 11.37KB, Downloaded 1150 times)
|
|
|