Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can we set dependencies between groups.

Status
Not open for further replies.

Mpatt

Technical User
Feb 13, 2003
7
GB
Hi,
Is it possible to set up dependencies between groups, such that Group A will run, and Group B will only run once Group A has successfully completed?

TIA,

:M
 
Not via the resources. However, if you start the groups via a script, you can easily do this.
 
you could use commandline to start the groups manually via cronjob or script. The savegrp command always gives you an return-code unequal to zero if the backup fails.

You can check this on Unix with: echo $?
On Windows with: echo %ERRORLEVEL%

you could start the groups something like:

savegrp <groupname-A> && savegrp <groupname-B>

in this situation the second savegrp-command gets started only if the first one succeeded (return-code of 0).
When you only take one & the second group starts without checking the return-code also if the first group failed.

This work's on Unix and also Windows.

Hope this helps

 
sorry i was wrong. One & makes the first process running in background and lets immediatly start the second savegrp-process
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top