Another option is to create another script which calls the sleep command on your TSM server with an immediate action. You need to be in prompted schedule mode to use this method. Here is how I do it:
DEFINE SCRIPT SLEEP DESC="Enter number of seconds to wait as a variable" UPDATE SCRIPT SLEEP "define clientaction TSMSERVERNAME action=command -" UPDATE SCRIPT SLEEP "objects='sleep ""$1""' wait=yes" Then in your other scripts where you need a pause you can have a line like so: RUN SLEEP 30 ______________________________ John Monahan Senior Consultant Enterprise Solutions Computech Resources, Inc. Office: 952-833-0930 ext 109 Cell: 952-221-6938 http://www.computechresources.com "Ritter, John M" <[EMAIL PROTECTED] ERBILT.EDU> To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Adding a short delay in a server command script 11/17/2005 10:21 AM Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] .EDU> 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: [EMAIL PROTECTED]