The way we do it is to reschedule itself for ten minutes later.  As follows:

select * from process where process='Backup Storage Pool'
if(rc_ok) goto resch
delete schedule this_sched t=a
now do my thing goes here
exit

resch:
delete schedule this_sched t=a
define schedule this_sched t=a cmd='run this_sched_macro' startt=now+0:10 -
   dur=15 duru=m per=1 peru=h active=yes
exit

Maybe not the best but it works.


--
Phillip Ford
Senior Software Specialist
Corporate Computer Center
Schering-Plough Corp.
(901) 320-4462
(901) 320-4856 FAX
[EMAIL PROTECTED]



-----Original Message-----
From: Tab Trepagnier [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 12:01 PM
To: [EMAIL PROTECTED]
Subject: Script logic


I'm just beginning to use TSM server scripts.

What is the best way to implement a "while  do" loop?

For example:

While "node" sessions are present:
     "sleep" for 10 minutes
End While
Launch the next TSM process...

That will allow building condition / prerequisite testing into the scripts.

Thanks.

Tab Trepagnier
TSM Administrator
Laitram Corporation

***************************************************************
 This electronic message, including its attachments, is confidential and
proprietary and is solely for the intended recipient.  If you are not the
intended recipient, this message was sent to you in error and you are hereby
advised that any review, disclosure, copying, distribution or use of this
message or any of the information included in this message by you is
unauthorized and strictly prohibited.  If you have received this electronic
transmission in error, please immediately notify the sender by reply to this
message and permanently delete all copies of this message and its
attachments in your possession.  Thank you.

Reply via email to