ADSM-L

Re: sleep style command in scripts

2002-03-18 19:12:20
Subject: Re: sleep style command in scripts
From: John Monahan <JMonahan AT COMPURES DOT COM>
Date: Mon, 18 Mar 2002 17:03:38 -0600
Not the prettiest of solutions, but it works.  You can create a TSM script
called sleep which uses a clientaction to run the sleep command on an AIX
system.

/* Sleep script */
define clientaction AIXNODENAME action=command -
 objects='sleep "$1"' wait=yes

Then from your other script where you want the pause:
RUN SLEEP 30

The actual sleep time will be a minute or two longer than the parameter,
because it waits for the client action to be scheduled, run, and finish
executing, so there is extra time added in there.



===================================================
      John Monahan
      Senior Consultant Enterprise Solutions
      Computech Resources, Inc.
      Office: 952-833-0930 ext 109
      Cell: 952-484-5435
      http://www.compures.com
===================================================





Joe Cascanette <Joe.Cascanette AT CUMIS DOT COM>
Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
03/15/2002 12:16 PM
Please respond to "ADSM: Dist Stor Manager"


        To:     ADSM-L AT VM.MARIST DOT EDU
        cc:
        Subject:        sleep style command in scripts


Is there a command I can use in a TSM server script to provide a sleep or
a wait function?

Thanks

Joe
<Prev in Thread] Current Thread [Next in Thread>