I also do my scheduling via cron and have the cron job call admin
scripts but of course you run into the problem of hard coding a password
somewhere. You could also try something like:
Last step in admin schedule: q stg >
/tmp/flags/BACKUP_SCHEDULE_DONE.FLAG
Then have cron schedule your shell script to start at the same time as
your admin schedule and have the shell script do the following:
while true
do
if [ -a /tmp/flags/BACKUP_SCHEDULE_DONE.FLAG ] ; then
rm /tmp/flags/BACKUP_SCHEDULE_DONE.FLAG
copy important files
exit
fi
sleep 60
done
H. Milton Johnson
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of
Mark D. Rodriguez
Sent: Wednesday, September 01, 2004 5:36 PM
To: [EMAIL PROTECTED]
Subject: Re: How to run a unix shell script by an administrative
schedule ?
Guenther Bergmann wrote:
>Hi *SMers,
>
>I have set up an administrative schedule, which does the following:
>- backup all primary pools to copy pool
>- backup db to tape
>- delete older db backups.
>Next step should be to copy some important files (volhist.out,
>devconf.out etc) to a remote server. I've written a shell script to
>accomplish this.
>Question: How can this shell script be called by the above mentioned
>admin. schedule?
>
>Any help is appreciated
>
>regards Guenther
>
>--
>Guenther Bergmann, Am Kreuzacker 10, 63150 Heusenstamm, Germany
>Guenther_Bergmann at gbergmann dot de http://www.gbergmann.de
>
>
>
Guenther,
You can not do this directly as a "Admin Schedule", however you could do
a little trick and get it done. I am assuming that the TSM server
system also has a TSM node assigned to it. If so you could run a client
schedule that calls the OS level script. But you might just consider
running this script from an OS scheduler like cron if it is a Unix
machine.
I hope that helps.
--
Regards,
Mark D. Rodriguez
President MDR Consulting, Inc.
========================================================================
=======
MDR Consulting
The very best in Technical Training and Consulting.
IBM Advanced Business Partner
SAIR Linux and GNU Authorized Center for Education IBM Certified
Advanced Technical Expert, CATE AIX Support and Performance Tuning,
RS6000 SP, TSM/ADSM and Linux Red Hat Certified Engineer, RHCE
========================================================================
=======