Hi,
here a example for a script
backup_sp3t_bvir:
ba stgp sp3t sp3t_bvir
if (rc_ok) goto backup_spct
if (rc_notfound) goto backup_spct
exit
backup_spct:
/*ba stgp spct spct_bkp wait=y maxpr=2*/
if (rc_ok) goto backup_sp8t
if (rc_notfound) goto backup_sp8t
exit
backup_sp8t:
/*ba stgp sp8t sp8t_bkp wait=y maxpr=2*/
if (rc_ok) goto backup_sp3t
if (rc_notfound) goto backup_sp3t
exit
backup_sp3t:
/*ba stgp sp3t sp3t_bkp wait=y maxpr=2*/
if (rc_ok) goto ende
if (rc_notfound) goto ende
exit
ende:
regards
Michael Garnebode
Diplom-Informatiker
Systemberater
Schmitz RZ Consult
Gesellschaft für DV-Beratung und Projektmanagement mbH
Im Blumersfeld 22
50259 Pulheim
Tel.: +49 (0) 2238/922266
Fax: +49 (0) 2238/922267
EMail: garnebode AT schmitz-rz-consult DOT de
-----Ursprüngliche Nachricht-----
Von: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] Im Auftrag
von Weinstein, Stephen
Gesendet: Donnerstag, 9. September 2004 13:05
An: ADSM-L AT VM.MARIST DOT EDU
Betreff: Re: Run script sequentially?
With the following script, how can you be sure a command finishes with a status
of success before starting the next command. I would like the script to stop
if a command fails.
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT vm.marist DOT edu]On Behalf Of
Hooft, Jeroen
Sent: Thursday, September 09, 2004 4:33 AM
To: ADSM-L AT vm.marist DOT edu
Subject: Re: Run script sequentially?
Use the "wait" option.
BACKUP STGPOOL DISK COPY MAXPR=1 WAIT=YES
BACKUP STGPOOL TAPE COPY MAXPR=1 WAIT=YES
BACKUP DB DEVCLASS=<DEVC> TYPE=FULL WAIT=YES
PREPARE WAIT=YES
-----Original Message-----
From: -ray [mailto:ray AT OPS.SELU DOT EDU]
Sent: donderdag 9 september 2004 10:10
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Run script sequentially?
All,
I would like to have a script automatically run to backup the disk stgpool,
then tape pool, and finally the database. Obviously i don't want them all to
kick off at the same time. Is there a way to run them sequentially so tape
pool backup doesn't start until disk pool backup is done, db backup doesn't
start till tape pool backup is done??
ray
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ray DeJean http://www.r-a-y.org
Systems Engineer Southeastern Louisiana University
IBM Certified Specialist AIX Administration, AIX Support
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager at
postmaster at dor.state.ma.us.
**********************************************************************
|