Re: sleep style command in scripts
2015-10-04 17:10:43
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
|
|
|