<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shell script for RMAN backup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6209881#M496201</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It says, backup finished. but, it's not coming out from rman. not sure, why. also, the process still active for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;epmqa&amp;gt;  tail -f /db/epmqa/export/rman/091913.log
Starting backup at 19-SEP-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 19-SEP-13
channel ORA_DISK_1: finished piece 1 at 19-SEP-13
piece handle=/db/epmqa/export/rman/rman_EPMQA_1_18.rman tag=SPFILE_BKP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 19-SEP-13

epmqa&amp;gt; ps -ef | grep rman
oraepmqa 23428 23196  0 09:49:38 pts/0     0:00 sh -x rman2.sh&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2013 13:53:34 GMT</pubDate>
    <dc:creator>Alok_Behria</dc:creator>
    <dc:date>2013-09-19T13:53:34Z</dc:date>
    <item>
      <title>Shell script for rman backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6205877#M496193</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to configure rman backup to kick off through shell. here , I wrote following code with the help of exesiting script, but it seems that "if then else"is still an issue for me. Please offer your advise , as I tried to get this through , but all in vein. I am also looking to write this in such a manner , where in , if the database is down , then it simply send me a mail and if the the database is up , then execute the code , which I wrote here. thanks a lot in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#!/usr/bin/sh
. epmqa
SID=EPMQA
DATE=`date '+%m%d%y'`
MAIL_LIST="aajitkumar@csc.com"
LOG_DIR=/db/epmqa/export/rman
LOG_FILE=${LOG_DIR}/${DATE}.log
ps -ef | grep -i $SID | grep pmon
if [ $? -eq 0 ] then
rman connect target /
spool log to '/db/epmqa/export/rman/$LOG_FILE'
shutdown immediate ;
startup mount;
{  
backup database tag = 'wkly_cold_backup';
backup current controlfile tag = 'curr_ctl_file_bkp';
backup spfile tag = 'spfile_bkp';
}
grep "ORA-" $LOG_FILE
if [ $? -eq 0 ] then
mailx -s 'Rman backup of $SID has some issues ' $MAIL_LIST &amp;lt; $LOG_FILE
if
grep "RMAN-" $LOG_FILE
if [ $? -eq 0 ] then
mailx -s 'Rman backup of $SID has some issues ' $MAIL_LIST &amp;lt; $LOG_FILE
else
mailx -s 'Rman backup of $SID completed successfully $MAIL_LIST &amp;lt; $LOG_FILE
fi
fi
fi
fi&lt;BR /&gt;&lt;BR /&gt;rman2.sh[9]: Syntax error at line 27 : `else' is not expected.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;P.S. This thread has been moved&amp;nbsp;from HP-UX &amp;gt; General to HP-UX &amp;gt; languages. - Hp Forum Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 02:16:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6205877#M496193</guid>
      <dc:creator>Alok_Behria</dc:creator>
      <dc:date>2013-09-17T02:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6206007#M496194</link>
      <description>&lt;P&gt;&amp;gt;"if then else"is still an issue for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you have an "if" with nothing on the line.&lt;/P&gt;&lt;P&gt;It also helps if you have a consistent indentation style so we can see what matches.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;ps -ef | grep -i $SID | grep pmon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use "grep -q pmon" so you don't have this going to stdout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;shutdown immediate ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need for semicolons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ ... }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need for braces either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;grep "ORA-" $LOG_FILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, add -q to grep, here and below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;if&lt;/P&gt;&lt;P&gt;&amp;gt;grep "RMAN-" $LOG_FILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was your intention with that "if"?&amp;nbsp; Missing expression and "then".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;mailx -s 'Rman backup of $SID has some issues '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why have a trailing space in the subject?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6206007#M496194</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-16T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6206029#M496195</link>
      <description>&lt;P&gt;First of all , thanks a lot. please find below my remarks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;It seems you have an "if" with nothing on the line.&lt;BR /&gt;&amp;nbsp; It also helps if you have a consistent indentation style so we can see what matches.&lt;BR /&gt;&lt;BR /&gt;I am using if condirtion to test pmon proces , if it is there , then I need to invoke rman utility , which&lt;BR /&gt;is a database backup utility&lt;BR /&gt;&lt;BR /&gt;if [ $? -eq 0 ] then&lt;BR /&gt;rman connect target /&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ps -ef | grep -i $SID | grep pmon&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;You should use "grep -q pmon" so you don't have this going to stdout.&lt;BR /&gt;got that.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;shutdown immediate ;&lt;BR /&gt;since , it is database command , i need to put ";" there.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;No need for semicolons.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;{ ... }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; No need for braces either.&lt;BR /&gt;&lt;BR /&gt;Are you refering LOG_FILE=${LOG_DIR}/${DATE}.log here.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;grep "ORA-" $LOG_FILE&lt;BR /&gt;&lt;BR /&gt;you meant grep -q "ORA-"&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Again, add -q to grep, here and below.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if&lt;BR /&gt;&lt;BR /&gt;&amp;gt;grep "RMAN-" $LOG_FILE&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; What was your intention with that "if"?&amp;nbsp; Missing expression and "then".&lt;BR /&gt;&lt;BR /&gt;I need to grep ORA- or RMAN- from the log file output , if either of string found , then i need a mail stating backup has failed.&lt;BR /&gt;becuase. rman will throw rman- or ora- errors in that case.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;mailx -s 'Rman backup of $SID has some issues '&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Why have a trailing space in the subject?&lt;BR /&gt;&lt;BR /&gt;got that..&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6206029#M496195</guid>
      <dc:creator>Alok_Behria</dc:creator>
      <dc:date>2013-09-16T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6206091#M496196</link>
      <description>&lt;P&gt;&amp;gt;I am using if condition to test pmon process&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The empty "if" doesn't do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;shutdown immediate ;&lt;BR /&gt;&amp;gt;it is database command, I need to put ";" there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless you are using a here doc, these are all shell commands.&amp;nbsp; Perhaps you intended:&lt;/P&gt;&lt;P&gt;rman connect target / &amp;lt;&amp;lt;EOF&lt;/P&gt;&lt;P&gt;spool log to '/db/epmqa/export/rman/$LOG_FILE'&lt;/P&gt;&lt;P&gt;shutdown immediate ;&lt;/P&gt;&lt;P&gt;startup mount;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;backup database tag = 'wkly_cold_backup';&lt;/P&gt;&lt;P&gt;backup current controlfile tag = 'curr_ctl_file_bkp';&lt;/P&gt;&lt;P&gt;backup spfile tag = 'spfile_bkp';&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;EOF&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;gt;&amp;gt; No need for braces either.&lt;BR /&gt;&amp;gt;Are you referring LOG_FILE=${LOG_DIR}/${DATE}.log here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No the ones after: startup mount;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;gt;you meant grep -q "ORA-"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;gt;I need to grep ORA- or RMAN- from the log file output, if either of string found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you should replace by one grep with -e:&lt;/P&gt;&lt;P&gt;grep -q -e "ORA-" -e "RMAN-" $LOG_FILE&lt;/P&gt;&lt;P&gt;if [ $? -eq 0 ]; then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mailx -s 'Rman backup of $SID has some issues' $MAIL_LIST &amp;lt; $LOG_FILE&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the semicolon before the "then".&amp;nbsp; You have that mistake in several places.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6206091#M496196</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-16T17:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6207151#M496197</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help here. I tried to create a script based on your inputs, but it seems , it's not coming out from rman. the backup part has beed done, but somehow , it's not exiting from rman. Please find below my comments. thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#!/usr/bin/sh
. epmqa
SID=EPMQA
DATE=`date '+%m%d%y'`
MAIL_LIST="aajitkumar@csc.com"
LOG_DIR=/db/epmqa/export/rman
LOG_FILE=${LOG_DIR}/${DATE}.log
ps -ef | grep -i $SID | grep pmon
if [ $? -eq 0 ]; then
rman  &amp;lt;&amp;lt;EOF
connect target /
spool log to '$LOG_FILE'
shutdown immediate ;
startup mount;
{
backup current controlfile tag = 'curr_ctl_file_bkp';
backup spfile tag = 'spfile_bkp';
}
exit   #### problem here
EOF
grep -q -e "ORA-" -e "RMAN-" $LOG_FILE  ## Please explain this line
if [ $? -eq 0 ]; then
mailx -s 'Rman backup of $SID has errors ' $MAIL_LIST &amp;lt; $LOG_FILE
else
mailx -s 'Rman backup of $SID completed successfully' $MAIL_LIST &amp;lt; $LOG_FILE
fi
fi&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 13:26:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6207151#M496197</guid>
      <dc:creator>Alok_Behria</dc:creator>
      <dc:date>2013-09-17T13:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6208093#M496198</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any inputs from your side Dennins. I even put the exit , but , it seems its not coming out from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alok&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 07:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6208093#M496198</guid>
      <dc:creator>Alok_Behria</dc:creator>
      <dc:date>2013-09-18T07:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6208421#M496199</link>
      <description>&lt;P&gt;Does the RMAN log file exist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(according to your script, it should be at /db/epmqa/export/rman/&amp;lt;date&amp;gt;.log)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it exists, what does it say?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6208421#M496199</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-09-18T13:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6208883#M496200</link>
      <description>&lt;P&gt;&amp;gt;grep -q -e "ORA-" -e "RMAN-" $LOG_FILE ## Please explain this line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do a quiet search for either ORA- or RMAN- in $LOG_FILE and set the exit status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;it's not exiting from rman.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have typed that input into rman manually and it likes it?&amp;nbsp; It's not waiting for you to type something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as Matti said, check the logfile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 19:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6208883#M496200</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-18T19:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6209881#M496201</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It says, backup finished. but, it's not coming out from rman. not sure, why. also, the process still active for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;epmqa&amp;gt;  tail -f /db/epmqa/export/rman/091913.log
Starting backup at 19-SEP-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 19-SEP-13
channel ORA_DISK_1: finished piece 1 at 19-SEP-13
piece handle=/db/epmqa/export/rman/rman_EPMQA_1_18.rman tag=SPFILE_BKP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 19-SEP-13

epmqa&amp;gt; ps -ef | grep rman
oraepmqa 23428 23196  0 09:49:38 pts/0     0:00 sh -x rman2.sh&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 13:53:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6209881#M496201</guid>
      <dc:creator>Alok_Behria</dc:creator>
      <dc:date>2013-09-19T13:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for RMAN backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6210343#M496202</link>
      <description>&lt;P&gt;&amp;gt;the process still active for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the ancestors of that rman2.sh process?&lt;/P&gt;&lt;P&gt;ps -f -p 23428 -p 23196&amp;nbsp; # etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that process was put into the background and wants to write to stdout/stderr, it will hang.&lt;/P&gt;&lt;P&gt;Try redirecting that output:&lt;/P&gt;&lt;P&gt;rman &amp;lt;&amp;lt;EOF &amp;gt; rman.out 2&amp;gt;&amp;amp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then cat that file on the end of $LOG_FILE:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;EOF&lt;/P&gt;&lt;P&gt;cat rman.out &amp;gt;&amp;gt; $LOG_FILE&lt;/P&gt;&lt;P&gt;rm -f rman.out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or just send the whole output from rman to $LOG_FILE and not use "spool log to".&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 19:30:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-rman-backup/m-p/6210343#M496202</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-09-19T19:30:27Z</dc:date>
    </item>
  </channel>
</rss>

