Adding a short delay in a server command script
2005-11-17 11:36:16
I have a short server command script that changes the reclamation
setting and then immediately resets it back, in order to start a
reclamation process for any tapes that are over the threshold.
When I run the two commands manually, there is enough time between them
to allow a reclamation process to kick off.
When I run them as part of a script, they run so quickly that there is
no time for a reclamation process to start before it is reset back to
100.
Here are the two lines in the script:
update stg tapearchivepool01 recl=87
update stg tapearchivepool01 recl=100
What I need is the equivalent of the sleep command, so that I can delay
a few seconds between the two update commands, something similar to:
update stg tapearchivepool01 recl=87
sleep 10
update stg tapearchivepool01 recl=100
Any suggestions? I want to just have one script do the kickoff as well
as resetting the recl back to 100. I need to run this at certain times
of the day that I have available drives, so I thought a server command
script would be appropriate. If anybody has alternate approaches, I
would also be interested. The wait=yes option doesn't work for the
update stg command, unfortunately.
Thanks in advance for your help.
John M. Ritter
Systems Software Specialist
Vanderbilt University Medical Center
Nashville, TN 37232
Email: john.ritter AT vanderbilt DOT edu
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Adding a short delay in a server command script,
Ritter, John M <=
|
|
|