mst@csun.UUCP (Mike Temkin) (04/07/88)
[Mmmmm.... ASCII (munch) (munch) :-) ] Situation: This is the first major(?) script that I have written (we started using VMS this semester). I have a script that does the following BACKUP command: $ BACKUP/REWIND/IMAGE/BUFFER_COUNT=5/VERIFY MA$DUA0: - MA$MUB0:'DATE.BCK/SAVE_SET Problem: My problem is that after either backup is done, the tape does not rewind itself and the statements in the COM file following the backup command are never executed. This means that in order to do both backups, I have to run the script twice. Question: Am I doing something wrong or is this normal? Script follows... $ ! THIS SCRIPT DOES A BACKUP OF BOTH DUA0: AND DUA1: TO $ ! MAGTAPE ON MUB0:. $ $ ! Michael Temkin Mar 7, 1988 $ $ DATE = F$EXTRACT(1,10,F$TIME()) $ WRITE SYS$OUTPUT "MOUNTING MA$MUB0:" $ INITIALIZE MUB0: BACKUP $ MOUNT/OVERRIDE=ID/FOREIGN MA$MUB0: $ WRITE SYS$OUTPUT "BEGINNING BACKUP OF MA$DUA0:" $ TEMP = "YES" $ INQUIRE TEMP "ENTER 'NO' TO SKIP MA$DUA0" $ IF TEMP .EQS. "NO" THEN GOTO NEXT $ SHOW TIME $ BACKUP/REWIND/IMAGE/BUFFER_COUNT=5/VERIFY MA$DUA0: MA$MUB0:'DATE.BCK/SAVE_SET $ DISMOUNT MA$MUB0: $ WRITE SYS$OUTPUT "Backing up MA$DUA1. Change tapes then press return." $ TEMP = "YES" $ INQUIRE TEMP "ENTER 'NO' TO SKIP MA$DUA1" $ IF TEMP .EQS. "NO" THEN GOTO END $ INITIALIZE MUB0: BACKUP $ MOUNT/OVERRIDE=ID/FOREIGN MUB0: $! $ NEXT: $ WRITE SYS$OUTPUT "BEGINNING BACKUP OF MA$DUA1:" $ SHOW TIME $ BACKUP/REWIND/IMAGE/BUFFER_COUNT=5/VERIFY MA$DUA1: MA$MUB0:'DATE.BCK/SAVE_SET $ DISMOUNT MA$MUB0: $ WRITE SYS$OUTPUT "Weekly dump completed ", F$TIME() $ END:
mst@csun.UUCP (Mike Temkin) (04/07/88)
Sorry but my .signature never got attached to my posting and I did not want it to look like I worked for the wrong organization. Mike Temkin ...!{ihnp4,sdcrdcf,hplabs,psivax,ttidca}!csun!mst Cal. State U. Northridge, School of Engineering and Computer Science
shs@sabbath.rutgers.edu (S. H. Schwartz) (04/12/88)
In article <1179@csun.UUCP> mst@csun.UUCP writes:
Situation:
This is the first major(?) script that I have written (we started
using VMS this semester). I have a script that does the following
BACKUP command:
$ BACKUP/REWIND/IMAGE/BUFFER_COUNT=5/VERIFY MA$DUA0: -
MA$MUB0:'DATE.BCK/SAVE_SET
Problem:
My problem is that after either backup is done, the tape does not
rewind itself and the statements in the COM file following the
backup command are never executed.
-------------------------------------
I've noticed the same behavior. If it was worth it to me to debug, I
would execute:
$ ON ERROR ...
$ ON WARNING ...
$ ...
immediately before the $ BACKUP, then look to see if BACKUP was
setting $STATUS to some error-indicating value, without printing a
corresponding message.
--
---***---
"Hit me with your best pshat!" --- Lenny Solomon
S. H. Schwartz (201) 846-9185 shs@paul.rutgers.edu
(201) 932-4714 ...rutgers!paul.rutgers.edu!shs