Scunningham99
Programmer
HERE IS A COPY OF MY SCRIPT. THE PROBLEM IS THAT IT IS NOT QUITTING RSH EVEN THOUGH PROCESS HAS FINISHED ON REMOTE SERVER!!!
HENCE IT DOESNT QUIT OUT OF SCRIPT. HELP!?!?!?!
#!/bin/ksh
#
# Shell script to backup the entire system onto D(ave) L(ee) T(ravis) Drive
#
TODAY=`date +%d`;export TODAY
exec 1>/usr/local/lib/backups/backlog.$TODAY 2>&1
TAPERW=/dev/rmt/0c
TAPENR=/dev/rmt/0cn
TM=1
cd /
umask 000
# Shutdown the ORACLE database
echo "Shutting down the Oracle Database - `date`"
/user01/oracle/admin/scripts/clVIS
echo "Backup started at `date` ..."
for FS in `/usr/sbin/mount|awk '{ print $1 }'`
do
case "$FS" in
"/dev/fd"|"/tmp"|"/proc"|"/cdrom"
continue
;;
esac
echo "Backing up $FS to tape .. tapemark $TM .."
/usr/sbin/ufsdump 0uf $TAPENR $FS
TM=`expr $TM + 1`
sleep 10
done
# tar cvf /user04/prod_backup.tar /user0[2-4]/oradata/PRD1/*
# Startup the ORACLE database
echo "Starting up the Oracle Database - `date`"
/user01/oracle/admin/scripts/stVIS >/tmp/ora.open 2>&1
echo "Backup finished `date` ..."
rsh -n lsi /usr/local/bin/daily_backup;
mt -f $TAPERW rewoffl
cat /usr/local/lib/backups/backlog.$TODAY | lp -d 89_13
cat /usr/local/lib/backups/backlog.$TODAY | lp -d 89_6;
HENCE IT DOESNT QUIT OUT OF SCRIPT. HELP!?!?!?!
#!/bin/ksh
#
# Shell script to backup the entire system onto D(ave) L(ee) T(ravis) Drive
#
TODAY=`date +%d`;export TODAY
exec 1>/usr/local/lib/backups/backlog.$TODAY 2>&1
TAPERW=/dev/rmt/0c
TAPENR=/dev/rmt/0cn
TM=1
cd /
umask 000
# Shutdown the ORACLE database
echo "Shutting down the Oracle Database - `date`"
/user01/oracle/admin/scripts/clVIS
echo "Backup started at `date` ..."
for FS in `/usr/sbin/mount|awk '{ print $1 }'`
do
case "$FS" in
"/dev/fd"|"/tmp"|"/proc"|"/cdrom"
continue
;;
esac
echo "Backing up $FS to tape .. tapemark $TM .."
/usr/sbin/ufsdump 0uf $TAPENR $FS
TM=`expr $TM + 1`
sleep 10
done
# tar cvf /user04/prod_backup.tar /user0[2-4]/oradata/PRD1/*
# Startup the ORACLE database
echo "Starting up the Oracle Database - `date`"
/user01/oracle/admin/scripts/stVIS >/tmp/ora.open 2>&1
echo "Backup finished `date` ..."
rsh -n lsi /usr/local/bin/daily_backup;
mt -f $TAPERW rewoffl
cat /usr/local/lib/backups/backlog.$TODAY | lp -d 89_13
cat /usr/local/lib/backups/backlog.$TODAY | lp -d 89_6;