ADSM-L

Re: controlling command execution in an script

2000-08-25 09:20:33
Subject: Re: controlling command execution in an script
From: "Ford, Phillip" <Phillip.Ford AT SPCORP DOT COM>
Date: Fri, 25 Aug 2000 09:20:29 -0400
This is kind of kluge but the way we do it is to start the first command
from a script that does the move data and schedule a second script for now +
10 min.  This second command does the following

delete schedule this_one
select * from processes where process="Move Data"
if (rc_ok) goto resch
do checkin command since move data is finished
exit
resch:
define schedule this_one t=a startt=now+0:10 ...... cmd='this_one'
exit


Thus this schedule wakes up every 10 minutes and if move data is still
running it deletes and reschedules itself.  If the move datas are all
finished then it deletes itself and does a checkin.

hope this helps


--
Phillip Ford
Phillip Ford
Senior Software Specialist
Corporate Computer Center
Schering-Plough Corp.
(901) 320-4462
(901) 320-4856 FAX
phillip.ford AT spcorp DOT com



<Prev in Thread] Current Thread [Next in Thread>
  • Re: controlling command execution in an script, Ford, Phillip <=